Hide "Destroy" options for Rune pouch and Coal bag (#496)
* Hide "Destroy" options for Rune pouch and Coal bag Would've made a global destroy but some things are not as important as these two items * Added herb sack and grouped it all up
This commit is contained in:
@@ -1564,11 +1564,49 @@ public interface MenuEntrySwapperConfig extends Config
|
||||
}
|
||||
|
||||
@ConfigItem(
|
||||
keyName = "swapImps",
|
||||
name = "Impling Jars",
|
||||
description = "Don't open implings if bank has a clue.",
|
||||
position = 117,
|
||||
group = "Miscellaneous"
|
||||
keyName = "hideDestroyRunepouch",
|
||||
name = "Hide Destroy on Rune Pouch",
|
||||
description = "Hides the 'Destroy' option when right clicking a Rune pouch.",
|
||||
position = 117,
|
||||
group = "Right Click Options"
|
||||
)
|
||||
default boolean hideDestroyRunepouch()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
@ConfigItem(
|
||||
keyName = "hideDestroyCoalbag",
|
||||
name = "Hide Destroy on Coal bag",
|
||||
description = "Hides the 'Destroy' option when right clicking a Coal bag.",
|
||||
position = 118,
|
||||
group = "Right Click Options"
|
||||
)
|
||||
default boolean hideDestroyCoalbag()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
@ConfigItem(
|
||||
keyName = "hideDestroyHerbsack",
|
||||
name = "Hide Destroy on Herb sack",
|
||||
description = "Hides the 'Destroy' option when right clicking a Herb sack.",
|
||||
position = 119,
|
||||
group = "Right Click Options"
|
||||
)
|
||||
default boolean hideDestroyHerbsack()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
//------------------------------------------------------------//
|
||||
|
||||
@ConfigItem(
|
||||
keyName = "swapImps",
|
||||
name = "Impling Jars",
|
||||
description = "Don't open implings if bank has a clue.",
|
||||
position = 120,
|
||||
group = "Miscellaneous"
|
||||
)
|
||||
default boolean swapImps()
|
||||
{
|
||||
|
||||
@@ -368,6 +368,22 @@ public class MenuEntrySwapperPlugin extends Plugin
|
||||
continue;
|
||||
}
|
||||
|
||||
if (option.contains("destroy"))
|
||||
{
|
||||
if (config.hideDestroyRunepouch() && entry.getTarget().contains("Rune pouch"))
|
||||
{
|
||||
continue;
|
||||
}
|
||||
if (config.hideDestroyCoalbag() && entry.getTarget().contains("Coal bag"))
|
||||
{
|
||||
continue;
|
||||
}
|
||||
if (config.hideDestroyHerbsack() && entry.getTarget().contains("Herb sack"))
|
||||
{
|
||||
continue;
|
||||
}
|
||||
}
|
||||
|
||||
int identifier = entry.getIdentifier();
|
||||
|
||||
Player[] players = client.getCachedPlayers();
|
||||
|
||||
Reference in New Issue
Block a user