Menumod (#191)
* Option to Hide Nets/Bait spots so you can left click lobby.
This commit is contained in:
@@ -45,4 +45,10 @@ public interface MenuModifierConfig extends Config
|
||||
|
||||
@ConfigItem(position = 4, keyName = "hideLookup", name = "Hide Lookup", description = "Hides the 'lookup' option from the right click menu")
|
||||
default boolean hideLookup() { return true; }
|
||||
|
||||
@ConfigItem(position = 4, keyName = "hideNet", name = "Hide Net", description = "Hides the 'net' option from the right click menu")
|
||||
default boolean hideNet() { return true; }
|
||||
|
||||
@ConfigItem(position = 4, keyName = "hideBait", name = "Hide Bait", description = "Hides the 'Bait' option from the right click menu")
|
||||
default boolean hideBait() { return true; }
|
||||
}
|
||||
|
||||
@@ -124,6 +124,12 @@ public class MenuModifierPlugin extends Plugin
|
||||
if (option.contains("examine") && config.hideExamine())
|
||||
continue;
|
||||
|
||||
if (option.contains("net") && config.hideNet())
|
||||
continue;
|
||||
|
||||
if (option.contains("bait") && config.hideBait())
|
||||
continue;
|
||||
|
||||
int identifier = entry.getIdentifier();
|
||||
|
||||
Player[] players = client.getCachedPlayers();
|
||||
|
||||
Reference in New Issue
Block a user