Add Silver sickle(b) to menu entry swapper plugin.

This commit is contained in:
ShaunDreclin
2018-03-20 20:00:50 -04:00
parent d12a6878ad
commit 7d074855e5
2 changed files with 21 additions and 2 deletions

View File

@@ -169,6 +169,17 @@ public interface MenuEntrySwapperConfig extends Config
@ConfigItem(
position = 12,
keyName = "swapSilverSickle",
name = "Silver sickle(b)",
description = "Swap Wield with Cast Bloom on Silver sickle(b)"
)
default boolean swapSilverSickle()
{
return true;
}
@ConfigItem(
position = 13,
keyName = "swapBones",
name = "Bury",
description = "Swap Bury with Use on Bones"

View File

@@ -128,9 +128,17 @@ public class MenuEntrySwapperPlugin extends Plugin
swap("rub", option, target, true);
swap("teleport", option, target, true);
}
else if (config.swapTeleportItem() && option.equals("wield"))
else if (option.equals("wield"))
{
swap("teleport", option, target, true);
if (config.swapTeleportItem())
{
swap("teleport", option, target, true);
}
if (config.swapSilverSickle())
{
swap("cast bloom", option, target, true);
}
}
else if (config.swapBones() && option.equals("bury"))
{