menu swapper: add Fly, Rellekka travel options, and Chase

This commit is contained in:
TheLonelyDev
2018-04-08 20:17:32 +02:00
committed by Adam
parent df0e7c100a
commit 58c9a55a37
2 changed files with 19 additions and 0 deletions

View File

@@ -199,4 +199,15 @@ public interface MenuEntrySwapperConfig extends Config
{
return true;
}
@ConfigItem(
position = 15,
keyName = "swapChase",
name = "Chase",
description = "Allows to left click your cat to chase"
)
default boolean swapChase()
{
return true;
}
}

View File

@@ -357,6 +357,10 @@ public class MenuEntrySwapperPlugin extends Plugin
swap("pay-fare", option, target, true);
swap("charter", option, target, true);
swap("take-boat", option, target, true);
swap("fly", option, target, true);
swap("jatizso", option, target, true);
swap("neitiznot", option, target, true);
swap("rellekka", option, target, true);
}
if (config.swapPay())
@@ -418,6 +422,10 @@ public class MenuEntrySwapperPlugin extends Plugin
swap("use", option, target, true);
}
}
else if (config.swapChase() && option.equals("pick-up"))
{
swap("chase", option, target, true);
}
}
@Subscribe