sheesh!
This commit is contained in:
@@ -2,6 +2,7 @@ package net.runelite.client.plugins;
|
||||
|
||||
public enum PluginType
|
||||
{
|
||||
RUNELITPLUS,
|
||||
PVM,
|
||||
PVP,
|
||||
SKILLING,
|
||||
|
||||
@@ -36,6 +36,7 @@ import net.runelite.api.events.ConfigChanged;
|
||||
import net.runelite.api.events.GameStateChanged;
|
||||
import net.runelite.client.config.ConfigManager;
|
||||
import net.runelite.client.eventbus.Subscribe;
|
||||
import net.runelite.client.events.PluginChanged;
|
||||
import net.runelite.client.plugins.Plugin;
|
||||
import net.runelite.client.plugins.PluginDescriptor;
|
||||
import net.runelite.client.plugins.PluginType;
|
||||
@@ -84,16 +85,21 @@ public class PluginSorterPlugin extends Plugin
|
||||
}
|
||||
|
||||
@Subscribe
|
||||
public void onGameStateChanged(GameStateChanged gameStateChanged)
|
||||
public void onPluginChanged(PluginChanged pluginChanged)
|
||||
{
|
||||
if (gameStateChanged.getGameState() == GameState.LOGIN_SCREEN)
|
||||
validatePlugins();
|
||||
}
|
||||
|
||||
public void validatePlugins() {
|
||||
if (this.hidePlugins)
|
||||
{
|
||||
if (config.hidePlugins())
|
||||
{
|
||||
hidePlugins();
|
||||
}
|
||||
updateColors();
|
||||
hidePlugins();
|
||||
}
|
||||
else
|
||||
{
|
||||
showPlugins();
|
||||
}
|
||||
updateColors();
|
||||
}
|
||||
|
||||
@Subscribe
|
||||
@@ -108,16 +114,8 @@ public class PluginSorterPlugin extends Plugin
|
||||
|
||||
if (configChanged.getKey().equals("hidePlugins"))
|
||||
{
|
||||
if (this.hidePlugins)
|
||||
{
|
||||
hidePlugins();
|
||||
}
|
||||
else
|
||||
{
|
||||
showPlugins();
|
||||
}
|
||||
validatePlugins();
|
||||
}
|
||||
updateColors();
|
||||
}
|
||||
|
||||
private void updateColors()
|
||||
|
||||
@@ -55,7 +55,7 @@ import net.runelite.client.ui.ClientUI;
|
||||
hidden = true, // prevent users from disabling
|
||||
name = "RuneLitePlus",
|
||||
description = "Configures various aspects of RuneLitePlus",
|
||||
type = PluginType.UTILITY
|
||||
type = PluginType.RUNELITPLUS
|
||||
)
|
||||
@Singleton
|
||||
@Slf4j
|
||||
|
||||
Reference in New Issue
Block a user