menu entry swapper: Add portal nexus teleport menu swap (#13181)

This commit is contained in:
Kyle Shepherd
2021-02-15 02:02:26 +00:00
committed by GitHub
parent 8a728c1053
commit 29f2e621dc
2 changed files with 19 additions and 0 deletions

View File

@@ -342,6 +342,17 @@ public interface MenuEntrySwapperConfig extends Config
return false;
}
@ConfigItem(
keyName = "swapPortalNexus",
name = "Portal Nexus",
description = "Swap Teleport options with Teleport Menu on the Portal Nexus",
section = objectSection
)
default boolean swapPortalNexus()
{
return false;
}
@ConfigItem(
keyName = "swapPrivate",
name = "Private",

View File

@@ -304,6 +304,14 @@ public class MenuEntrySwapperPlugin extends Plugin
swap("teleport menu", "draynor village", config::swapJewelleryBox);
swap("teleport menu", "al kharid", config::swapJewelleryBox);
Arrays.asList(
"annakarl", "ape atoll dungeon", "ardougne", "barrows", "battlefront", "camelot", "carrallangar",
"catherby", "cemetery", "draynor manor", "falador", "fenkenstrain's castle", "fishing guild", "ghorrock",
"grand exchange", "great kourend", "harmony island", "kharyrll", "lumbridge", "lumbridge graveyard",
"lunar isle", "marim", "mind altar", "salve graveyard", "seers' village", "senntisten", "troll stronghold",
"varrock", "watchtower", "waterbirth island", "weiss", "west ardougne", "yanille"
).forEach(location -> swap(location, "portal nexus", "teleport menu", config::swapPortalNexus));
swap("shared", "private", config::swapPrivate);
swap("pick", "pick-lots", config::swapPick);