Menu Entry Swapper: remove smithing options (#1182)

* Update MenuEntrySwapperConfig.java

* Update MenuEntrySwapperPlugin.java

* Update MenuEntrySwapperConfig.java
This commit is contained in:
Kyleeld
2019-07-30 14:20:05 +01:00
committed by GitHub
parent 785479c648
commit ec8eda62f5
2 changed files with 4 additions and 30 deletions

View File

@@ -913,23 +913,11 @@ default CharterOption charterOption()
return ""; return "";
} }
@ConfigItem(
keyName = "swapSmithing",
name = "Swap Smithing",
description = "Enables swapping of 'Smith-1' and 'Smith-all' options.",
position = 2,
group = "Skilling"
)
default boolean getSwapSmithing()
{
return false;
}
@ConfigItem( @ConfigItem(
keyName = "swapTanning", keyName = "swapTanning",
name = "Swap Tanning", name = "Swap Tanning",
description = "Enables swapping of 'Tan-1' and 'Tan-all' options.", description = "Enables swapping of 'Tan-1' and 'Tan-all' options.",
position = 3, position = 2,
group = "Skilling" group = "Skilling"
) )
default boolean getSwapTanning() default boolean getSwapTanning()
@@ -941,7 +929,7 @@ default CharterOption charterOption()
keyName = "swapSawmill", keyName = "swapSawmill",
name = "Swap Sawmill Operator", name = "Swap Sawmill Operator",
description = "Makes 'Buy-plank' the default option on the Sawmill Operator.", description = "Makes 'Buy-plank' the default option on the Sawmill Operator.",
position = 4, position = 3,
group = "Skilling" group = "Skilling"
) )
default boolean getSwapSawmill() default boolean getSwapSawmill()
@@ -953,7 +941,7 @@ default CharterOption charterOption()
keyName = "swapSawmillPlanks", keyName = "swapSawmillPlanks",
name = "Swap Buy Planks", name = "Swap Buy Planks",
description = "Makes 'Buy All' the default option when buying planks.", description = "Makes 'Buy All' the default option when buying planks.",
position = 5, position = 4,
group = "Skilling" group = "Skilling"
) )
default boolean getSwapSawmillPlanks() default boolean getSwapSawmillPlanks()
@@ -965,7 +953,7 @@ default CharterOption charterOption()
keyName = "swapPuroPuro", keyName = "swapPuroPuro",
name = "Swap Puro-Puro Wheat", name = "Swap Puro-Puro Wheat",
description = "", description = "",
position = 6, position = 5,
group = "Skilling" group = "Skilling"
) )
default boolean getSwapPuro() default boolean getSwapPuro()

View File

@@ -279,7 +279,6 @@ public class MenuEntrySwapperPlugin extends Plugin
private String getSellFiftyItems; private String getSellFiftyItems;
private boolean getEasyConstruction; private boolean getEasyConstruction;
private String getEasyConstructionItems; private String getEasyConstructionItems;
private boolean getSwapSmithing;
private boolean getSwapTanning; private boolean getSwapTanning;
private boolean getSwapSawmill; private boolean getSwapSawmill;
private boolean getSwapSawmillPlanks; private boolean getSwapSawmillPlanks;
@@ -958,18 +957,6 @@ public class MenuEntrySwapperPlugin extends Plugin
} }
} }
else if (this.getSwapSmithing && option.contains("smith"))
{
if (option.equalsIgnoreCase("Smith 1"))
{
swap(client, "Smith All", option, target);
}
else if (option.equalsIgnoreCase("Smith 1 Set"))
{
swap(client, "Smith All Sets", option, target);
}
}
else if (this.getSwapTanning && option.equalsIgnoreCase("Tan 1")) else if (this.getSwapTanning && option.equalsIgnoreCase("Tan 1"))
{ {
swap(client, "Tan All", option, target); swap(client, "Tan All", option, target);
@@ -1866,7 +1853,6 @@ public class MenuEntrySwapperPlugin extends Plugin
this.getSellFiftyItems = config.getSellFiftyItems(); this.getSellFiftyItems = config.getSellFiftyItems();
this.getEasyConstruction = config.getEasyConstruction(); this.getEasyConstruction = config.getEasyConstruction();
this.getEasyConstructionItems = config.getEasyConstructionItems(); this.getEasyConstructionItems = config.getEasyConstructionItems();
this.getSwapSmithing = config.getSwapSmithing();
this.getSwapTanning = config.getSwapTanning(); this.getSwapTanning = config.getSwapTanning();
this.getSwapSawmill = config.getSwapSawmill(); this.getSwapSawmill = config.getSwapSawmill();
this.getSwapSawmillPlanks = config.getSwapSawmillPlanks(); this.getSwapSawmillPlanks = config.getSwapSawmillPlanks();