menu swapper: add jewellery box

This commit is contained in:
whartd
2019-12-15 21:24:00 -05:00
committed by Adam
parent f8b801f6cd
commit 2e8c7f46e1
2 changed files with 39 additions and 0 deletions

View File

@@ -232,6 +232,16 @@ public interface MenuEntrySwapperConfig extends Config
return true;
}
@ConfigItem(
keyName = "swapJewelleryBox",
name = "Jewellery Box",
description = "Swap Teleport Menu with previous destination on Jewellery Box"
)
default boolean swapJewelleryBox()
{
return false;
}
@ConfigItem(
keyName = "swapPrivate",
name = "Private",

View File

@@ -584,6 +584,35 @@ public class MenuEntrySwapperPlugin extends Plugin
swap("spellbook", option, target, index);
swap("perks", option, target, index);
}
else if (config.swapJewelleryBox() && option.equals("teleport menu"))
{
swap("duel arena", option, target, index);
swap("castle wars", option, target, index);
swap("clan wars", option, target, index);
swap("burthorpe", option, target, index);
swap("barbarian outpost", option, target, index);
swap("corporeal beast", option, target, index);
swap("tears of guthix", option, target, index);
swap("wintertodt camp", option, target, index);
swap("warriors' guild", option, target, index);
swap("champions' guild", option, target, index);
swap("monastery", option, target, index);
swap("ranging guild", option, target, index);
swap("fishing guild", option, target, index);
swap("mining guild", option, target, index);
swap("crafting guild", option, target, index);
swap("cooking guild", option, target, index);
swap("woodcutting guild", option, target, index);
swap("farming guild", option, target, index);
swap("miscellania", option, target, index);
swap("grand exchange", option, target, index);
swap("falador park", option, target, index);
swap("dondakan's rock", option, target, index);
swap("edgeville", option, target, index);
swap("karamja", option, target, index);
swap("draynor village", option, target, index);
swap("al kharid", option, target, index);
}
else if (config.swapPrivate() && option.equals("shared"))
{
swap("private", option, target, index);