Fix indenting and accidental annotations

This commit is contained in:
Lucwousin
2019-11-16 17:20:21 +01:00
parent 6632376d0f
commit f7225f413a
115 changed files with 114 additions and 147 deletions

View File

@@ -110,7 +110,7 @@ public class AntiDragPlugin extends Plugin
clientUI.resetCursor(); clientUI.resetCursor();
} }
@Subscribe @Subscribe
private void onConfigChanged(ConfigChanged event) private void onConfigChanged(ConfigChanged event)
{ {
if (event.getGroup().equals("antiDrag")) if (event.getGroup().equals("antiDrag"))

View File

@@ -178,7 +178,7 @@ public class AoeWarningPlugin extends Plugin
reset(); reset();
} }
@Subscribe @Subscribe
private void onConfigChanged(ConfigChanged event) private void onConfigChanged(ConfigChanged event)
{ {
if (!event.getGroup().equals("aoe")) if (!event.getGroup().equals("aoe"))

View File

@@ -174,7 +174,7 @@ public class BankPlugin extends Plugin
itemQuantities = null; itemQuantities = null;
} }
@Subscribe @Subscribe
private void onMenuShouldLeftClick(MenuShouldLeftClick event) private void onMenuShouldLeftClick(MenuShouldLeftClick event)
{ {
if (!forceRightClickFlag) if (!forceRightClickFlag)

View File

@@ -125,7 +125,7 @@ public class BanListPlugin extends Plugin
manualBans.clear(); manualBans.clear();
} }
@Subscribe @Subscribe
private void onConfigChanged(ConfigChanged event) private void onConfigChanged(ConfigChanged event)
{ {
if (event.getGroup().equals("banlist") && event.getKey().equals("bannedPlayers")) if (event.getGroup().equals("banlist") && event.getKey().equals("bannedPlayers"))

View File

@@ -177,7 +177,7 @@ public class BarrowsPlugin extends Plugin
} }
} }
@Subscribe @Subscribe
private void onConfigChanged(ConfigChanged event) private void onConfigChanged(ConfigChanged event)
{ {
if (event.getGroup().equals("barrows")) if (event.getGroup().equals("barrows"))

View File

@@ -114,7 +114,7 @@ public class BlastMinePlugin extends Plugin
} }
} }
@Subscribe @Subscribe
private void onGameObjectSpawned(GameObjectSpawned event) private void onGameObjectSpawned(GameObjectSpawned event)
{ {
final GameObject gameObject = event.getGameObject(); final GameObject gameObject = event.getGameObject();

View File

@@ -166,7 +166,7 @@ public class BoostsPlugin extends Plugin
isChangedDown = false; isChangedDown = false;
} }
@Subscribe @Subscribe
private void onGameStateChanged(GameStateChanged event) private void onGameStateChanged(GameStateChanged event)
{ {
switch (event.getGameState()) switch (event.getGameState())

View File

@@ -150,7 +150,7 @@ public class CannonPlugin extends Plugin
spotPoints.clear(); spotPoints.clear();
} }
@Subscribe @Subscribe
private void onItemContainerChanged(ItemContainerChanged event) private void onItemContainerChanged(ItemContainerChanged event)
{ {
if (event.getItemContainer() != client.getItemContainer(InventoryID.INVENTORY)) if (event.getItemContainer() != client.getItemContainer(InventoryID.INVENTORY))

View File

@@ -72,7 +72,7 @@ public class CerberusPlugin extends Plugin
ghosts.clear(); ghosts.clear();
} }
@Subscribe @Subscribe
private void onGameStateChanged(GameStateChanged event) private void onGameStateChanged(GameStateChanged event)
{ {
GameState gameState = event.getGameState(); GameState gameState = event.getGameState();

View File

@@ -91,7 +91,7 @@ public class ChatboxPerformancePlugin extends Plugin
} }
} }
@Subscribe @Subscribe
private void onScriptCallbackEvent(ScriptCallbackEvent ev) private void onScriptCallbackEvent(ScriptCallbackEvent ev)
{ {
if (!"chatboxBackgroundBuilt".equals(ev.getEventName())) if (!"chatboxBackgroundBuilt".equals(ev.getEventName()))

View File

@@ -436,7 +436,6 @@ public class ChatCommandsPlugin extends Plugin
return true; return true;
} }
@Subscribe
private void killCountLookup(ChatMessage chatMessage, String message) private void killCountLookup(ChatMessage chatMessage, String message)
{ {
if (!config.killcount()) if (!config.killcount())
@@ -524,7 +523,6 @@ public class ChatCommandsPlugin extends Plugin
return true; return true;
} }
@Subscribe
private void duelArenaLookup(ChatMessage chatMessage, String message) private void duelArenaLookup(ChatMessage chatMessage, String message)
{ {
if (!config.duels()) if (!config.duels())
@@ -582,7 +580,6 @@ public class ChatCommandsPlugin extends Plugin
client.refreshChat(); client.refreshChat();
} }
@Subscribe
private void questPointsLookup(ChatMessage chatMessage, String message) private void questPointsLookup(ChatMessage chatMessage, String message)
{ {
if (!config.qp()) if (!config.qp())
@@ -651,7 +648,6 @@ public class ChatCommandsPlugin extends Plugin
return true; return true;
} }
@Subscribe
private void gambleCountLookup(ChatMessage chatMessage, String message) private void gambleCountLookup(ChatMessage chatMessage, String message)
{ {
if (!config.gc()) if (!config.gc())
@@ -723,7 +719,6 @@ public class ChatCommandsPlugin extends Plugin
} }
@Subscribe
private void personalBestLookup(ChatMessage chatMessage, String message) private void personalBestLookup(ChatMessage chatMessage, String message)
{ {
if (!config.pb()) if (!config.pb())
@@ -820,7 +815,6 @@ public class ChatCommandsPlugin extends Plugin
* @param chatMessage The chat message containing the command. * @param chatMessage The chat message containing the command.
* @param message The chat message * @param message The chat message
*/ */
@Subscribe
private void itemPriceLookup(ChatMessage chatMessage, String message) private void itemPriceLookup(ChatMessage chatMessage, String message)
{ {
if (!config.price()) if (!config.price())
@@ -892,7 +886,6 @@ public class ChatCommandsPlugin extends Plugin
* @param chatMessage The chat message containing the command. * @param chatMessage The chat message containing the command.
* @param message The chat message * @param message The chat message
*/ */
@Subscribe
private void playerSkillLookup(ChatMessage chatMessage, String message) private void playerSkillLookup(ChatMessage chatMessage, String message)
{ {
if (!config.lvl()) if (!config.lvl())
@@ -967,7 +960,6 @@ public class ChatCommandsPlugin extends Plugin
} }
} }
@Subscribe
private void combatLevelLookup(ChatMessage chatMessage, String message) private void combatLevelLookup(ChatMessage chatMessage, String message)
{ {
if (!config.lvl()) if (!config.lvl())
@@ -1053,7 +1045,6 @@ public class ChatCommandsPlugin extends Plugin
} }
} }
@Subscribe
private void clueLookup(ChatMessage chatMessage, String message) private void clueLookup(ChatMessage chatMessage, String message)
{ {
if (!config.clue()) if (!config.clue())

View File

@@ -109,7 +109,7 @@ public class ChatFilterPlugin extends Plugin
client.refreshChat(); client.refreshChat();
} }
@Subscribe @Subscribe
private void onScriptCallbackEvent(ScriptCallbackEvent event) private void onScriptCallbackEvent(ScriptCallbackEvent event)
{ {
if (!"chatFilterCheck".equals(event.getEventName())) if (!"chatFilterCheck".equals(event.getEventName()))

View File

@@ -114,7 +114,7 @@ public class ChatHistoryPlugin extends Plugin implements KeyListener
keyManager.unregisterKeyListener(this); keyManager.unregisterKeyListener(this);
} }
@Subscribe @Subscribe
private void onChatMessage(ChatMessage chatMessage) private void onChatMessage(ChatMessage chatMessage)
{ {
// Start sending old messages right after the welcome message, as that is most reliable source // Start sending old messages right after the welcome message, as that is most reliable source

View File

@@ -109,7 +109,7 @@ public class ChatNotificationsPlugin extends Plugin
this.privateMessageHashes.clear(); this.privateMessageHashes.clear();
} }
@Subscribe @Subscribe
private void onGameStateChanged(GameStateChanged event) private void onGameStateChanged(GameStateChanged event)
{ {
switch (event.getGameState()) switch (event.getGameState())
@@ -270,7 +270,6 @@ public class ChatNotificationsPlugin extends Plugin
return (message.getName() + message.getMessage()).hashCode(); return (message.getName() + message.getMessage()).hashCode();
} }
@Subscribe
private void sendNotification(ChatMessage message) private void sendNotification(ChatMessage message)
{ {
String name = Text.removeTags(message.getName()); String name = Text.removeTags(message.getName());

View File

@@ -164,7 +164,7 @@ public class ClanChatPlugin extends Plugin
resetClanChats(); resetClanChats();
} }
@Subscribe @Subscribe
private void onConfigChanged(ConfigChanged configChanged) private void onConfigChanged(ConfigChanged configChanged)
{ {
if (configChanged.getGroup().equals("clanchat")) if (configChanged.getGroup().equals("clanchat"))
@@ -538,7 +538,6 @@ public class ClanChatPlugin extends Plugin
return clanMembers.size(); return clanMembers.size();
} }
@Subscribe
private void insertClanRankIcon(final ChatMessage message) private void insertClanRankIcon(final ChatMessage message)
{ {
final ClanMemberRank rank = clanManager.getRank(message.getName()); final ClanMemberRank rank = clanManager.getRank(message.getName());

View File

@@ -120,7 +120,7 @@ public class ClanManModePlugin extends Plugin
inwildy = 0; inwildy = 0;
} }
@Subscribe @Subscribe
private void onConfigChanged(ConfigChanged event) private void onConfigChanged(ConfigChanged event)
{ {
if (!"clanmanmode".equals(event.getGroup())) if (!"clanmanmode".equals(event.getGroup()))

View File

@@ -211,7 +211,7 @@ public class ClueScrollPlugin extends Plugin
resetClue(true); resetClue(true);
} }
@Subscribe @Subscribe
private void onChatMessage(ChatMessage event) private void onChatMessage(ChatMessage event)
{ {
if (event.getType() != ChatMessageType.GAMEMESSAGE && event.getType() != ChatMessageType.SPAM) if (event.getType() != ChatMessageType.GAMEMESSAGE && event.getType() != ChatMessageType.SPAM)

View File

@@ -126,7 +126,7 @@ public class CombatLevelPlugin extends Plugin
shutDownAttackLevelRange(); shutDownAttackLevelRange();
} }
@Subscribe @Subscribe
private void onGameTick(GameTick event) private void onGameTick(GameTick event)
{ {
if (client.getGameState() != GameState.LOGGED_IN) if (client.getGameState() != GameState.LOGGED_IN)

View File

@@ -127,7 +127,7 @@ public class ConfigPlugin extends Plugin
}); });
} }
@Subscribe @Subscribe
private void onPluginChanged(PluginChanged event) private void onPluginChanged(PluginChanged event)
{ {
SwingUtilities.invokeLater(configPanel::refreshPluginList); SwingUtilities.invokeLater(configPanel::refreshPluginList);

View File

@@ -113,7 +113,7 @@ public class CookingPlugin extends Plugin
session = null; session = null;
} }
@Subscribe @Subscribe
private void onOverlayMenuClicked(OverlayMenuClicked overlayMenuClicked) private void onOverlayMenuClicked(OverlayMenuClicked overlayMenuClicked)
{ {
OverlayMenuEntry overlayMenuEntry = overlayMenuClicked.getEntry(); OverlayMenuEntry overlayMenuEntry = overlayMenuClicked.getEntry();

View File

@@ -131,7 +131,7 @@ public class CorpPlugin extends Plugin
players.clear(); players.clear();
} }
@Subscribe @Subscribe
private void onGameStateChanged(GameStateChanged gameStateChanged) private void onGameStateChanged(GameStateChanged gameStateChanged)
{ {
if (gameStateChanged.getGameState() == GameState.LOADING) if (gameStateChanged.getGameState() == GameState.LOADING)

View File

@@ -182,7 +182,7 @@ public class CoxPlugin extends Plugin
overlayManager.remove(coxInfoBox); overlayManager.remove(coxInfoBox);
} }
@Subscribe @Subscribe
private void onConfigChanged(ConfigChanged event) private void onConfigChanged(ConfigChanged event)
{ {
if (event.getGroup().equals("Cox")) if (event.getGroup().equals("Cox"))

View File

@@ -113,7 +113,7 @@ public class DailyTasksPlugin extends Plugin
lastReset = 0L; lastReset = 0L;
} }
@Subscribe @Subscribe
private void onGameStateChanged(GameStateChanged event) private void onGameStateChanged(GameStateChanged event)
{ {
if (event.getGameState() == GameState.LOGGING_IN) if (event.getGameState() == GameState.LOGGING_IN)

View File

@@ -216,7 +216,7 @@ public class DevToolsPlugin extends Plugin
clientToolbar.removeNavigation(navButton); clientToolbar.removeNavigation(navButton);
} }
@Subscribe @Subscribe
private void onCommandExecuted(CommandExecuted commandExecuted) private void onCommandExecuted(CommandExecuted commandExecuted)
{ {
String[] args = commandExecuted.getArguments(); String[] args = commandExecuted.getArguments();

View File

@@ -165,7 +165,7 @@ public class DiscordPlugin extends Plugin
wsClient.unregisterMessage(DiscordUserInfo.class); wsClient.unregisterMessage(DiscordUserInfo.class);
} }
@Subscribe @Subscribe
private void onGameStateChanged(GameStateChanged event) private void onGameStateChanged(GameStateChanged event)
{ {
switch (event.getGameState()) switch (event.getGameState())

View File

@@ -105,7 +105,7 @@ public class DropPartyPlugin extends Plugin
reset(); reset();
} }
@Subscribe @Subscribe
private void onGameTick(GameTick event) private void onGameTick(GameTick event)
{ {
shuffleList(); shuffleList();

View File

@@ -78,7 +78,7 @@ public class EmojiPlugin extends Plugin
{ {
} }
@Subscribe @Subscribe
void onGameStateChanged(GameStateChanged gameStateChanged) void onGameStateChanged(GameStateChanged gameStateChanged)
{ {
if (gameStateChanged.getGameState() == GameState.LOGGED_IN) if (gameStateChanged.getGameState() == GameState.LOGGED_IN)

View File

@@ -74,7 +74,7 @@ public class EntityHiderPlugin extends Plugin
Text.fromCSV(config.hideNPCsOnDeath()).forEach(client::addHiddenNpcDeath); Text.fromCSV(config.hideNPCsOnDeath()).forEach(client::addHiddenNpcDeath);
} }
@Subscribe @Subscribe
public void onConfigChanged(ConfigChanged event) public void onConfigChanged(ConfigChanged event)
{ {
if (event.getGroup().equals("entityhider")) if (event.getGroup().equals("entityhider"))

View File

@@ -143,7 +143,7 @@ public class EquipmentInspectorPlugin extends Plugin
pluginToolbar.removeNavigation(navButton); pluginToolbar.removeNavigation(navButton);
} }
@Subscribe @Subscribe
private void onPlayerMenuOptionClicked(PlayerMenuOptionClicked event) private void onPlayerMenuOptionClicked(PlayerMenuOptionClicked event)
{ {
if (event.getMenuOption().equals(INSPECT_EQUIPMENT)) if (event.getMenuOption().equals(INSPECT_EQUIPMENT))

View File

@@ -102,17 +102,7 @@ public class ExaminePlugin extends Plugin
@Inject @Inject
private ScheduledExecutorService executor; private ScheduledExecutorService executor;
@Override @Subscribe
protected void startUp() throws Exception
{
}
@Override
protected void shutDown() throws Exception
{
}
@Subscribe
private void onGameStateChanged(GameStateChanged event) private void onGameStateChanged(GameStateChanged event)
{ {
pending.clear(); pending.clear();

View File

@@ -132,7 +132,7 @@ public class XpDropPlugin extends Plugin
overlayManager.remove(overlay); overlayManager.remove(overlay);
} }
@Subscribe @Subscribe
private void onXpDropEvent(XpDropEvent event) private void onXpDropEvent(XpDropEvent event)
{ {
previousExpGained = event.getExp(); previousExpGained = event.getExp();

View File

@@ -122,7 +122,7 @@ public class FairyRingPlugin extends Plugin
{ {
} }
@Subscribe @Subscribe
private void onConfigChanged(ConfigChanged event) private void onConfigChanged(ConfigChanged event)
{ {
if (!event.getGroup().equals("fairyrings")) if (!event.getGroup().equals("fairyrings"))

View File

@@ -187,7 +187,7 @@ public class FightCavePlugin extends Plugin
currentWave = -1; currentWave = -1;
} }
@Subscribe @Subscribe
private void onConfigChanged(ConfigChanged event) private void onConfigChanged(ConfigChanged event)
{ {
if (!event.getGroup().equals("fightcave")) if (!event.getGroup().equals("fightcave"))

View File

@@ -190,7 +190,7 @@ public class FishingPlugin extends Plugin
trawlerStartTime = null; trawlerStartTime = null;
} }
@Subscribe @Subscribe
private void onOverlayMenuClicked(OverlayMenuClicked overlayMenuClicked) private void onOverlayMenuClicked(OverlayMenuClicked overlayMenuClicked)
{ {
OverlayMenuEntry overlayMenuEntry = overlayMenuClicked.getEntry(); OverlayMenuEntry overlayMenuEntry = overlayMenuClicked.getEntry();

View File

@@ -116,7 +116,7 @@ public class FreezeTimersPlugin extends Plugin
return configManager.getConfig(FreezeTimersConfig.class); return configManager.getConfig(FreezeTimersConfig.class);
} }
@Subscribe @Subscribe
public void onSpotAnimationChanged(SpotAnimationChanged graphicChanged) public void onSpotAnimationChanged(SpotAnimationChanged graphicChanged)
{ {
final int oldGraphic = prayerTracker.getSpotanimLastTick(graphicChanged.getActor()); final int oldGraphic = prayerTracker.getSpotanimLastTick(graphicChanged.getActor());

View File

@@ -102,7 +102,7 @@ public class FriendTaggingPlugin extends Plugin
menuManager.removeManagedCustomMenu(ignoreTabResizableOption); menuManager.removeManagedCustomMenu(ignoreTabResizableOption);
} }
@Subscribe @Subscribe
private void onMenuEntryAdded(MenuEntryAdded event) private void onMenuEntryAdded(MenuEntryAdded event)
{ {
final int groupId = WidgetInfo.TO_GROUP(event.getParam1()); final int groupId = WidgetInfo.TO_GROUP(event.getParam1());

View File

@@ -299,7 +299,7 @@ public class GauntletPlugin extends Plugin
countersVisible = false; countersVisible = false;
} }
@Subscribe @Subscribe
private void onMenuOptionClicked(MenuOptionClicked menuOptionClicked) private void onMenuOptionClicked(MenuOptionClicked menuOptionClicked)
{ {
if (menuOptionClicked.getTarget().toUpperCase().contains("LINUM")) if (menuOptionClicked.getTarget().toUpperCase().contains("LINUM"))

View File

@@ -257,7 +257,7 @@ public class GrandExchangePlugin extends Plugin
grandExchangeClient = null; grandExchangeClient = null;
} }
@Subscribe @Subscribe
private void onSessionOpen(SessionOpen sessionOpen) private void onSessionOpen(SessionOpen sessionOpen)
{ {
AccountSession accountSession = sessionManager.getAccountSession(); AccountSession accountSession = sessionManager.getAccountSession();

View File

@@ -507,7 +507,7 @@ public class GroundItemsPlugin extends Plugin
collectedGroundItems.clear(); collectedGroundItems.clear();
} }
@Subscribe @Subscribe
private void onGameTick(GameTick event) private void onGameTick(GameTick event)
{ {
for (GroundItem item : collectedGroundItems.values()) for (GroundItem item : collectedGroundItems.values())

View File

@@ -179,7 +179,7 @@ public class HidePrayersPlugin extends Plugin
restorePrayers(); restorePrayers();
} }
@Subscribe @Subscribe
private void onGameStateChanged(GameStateChanged event) private void onGameStateChanged(GameStateChanged event)
{ {
if (event.getGameState() == GameState.LOGGED_IN) if (event.getGameState() == GameState.LOGGED_IN)

View File

@@ -149,7 +149,7 @@ public class HiscorePlugin extends Plugin
} }
} }
@Subscribe @Subscribe
private void onConfigChanged(ConfigChanged event) private void onConfigChanged(ConfigChanged event)
{ {

View File

@@ -118,7 +118,7 @@ public class HunterPlugin extends Plugin
traps.clear(); traps.clear();
} }
@Subscribe @Subscribe
private void onGameObjectSpawned(GameObjectSpawned event) private void onGameObjectSpawned(GameObjectSpawned event)
{ {
final GameObject gameObject = event.getGameObject(); final GameObject gameObject = event.getGameObject();

View File

@@ -119,7 +119,7 @@ public class BabyHydraPlugin extends Plugin
hydraattacks.clear(); hydraattacks.clear();
} }
@Subscribe @Subscribe
private void onConfigChanged(ConfigChanged event) private void onConfigChanged(ConfigChanged event)
{ {
if (!event.getGroup().equals("hydra")) if (!event.getGroup().equals("hydra"))

View File

@@ -999,7 +999,7 @@ public class IdleNotifierPlugin extends Plugin
{ {
} }
@Subscribe @Subscribe
private void onConfigChanged(ConfigChanged event) private void onConfigChanged(ConfigChanged event)
{ {
if (!event.getGroup().equals("idlenotifier")) if (!event.getGroup().equals("idlenotifier"))

View File

@@ -150,7 +150,7 @@ public class ImplingsPlugin extends Plugin
overlayManager.remove(implingCounterOverlay); overlayManager.remove(implingCounterOverlay);
} }
@Subscribe @Subscribe
private void onGameTick(GameTick event) private void onGameTick(GameTick event)
{ {
implingCounterMap.clear(); implingCounterMap.clear();

View File

@@ -273,7 +273,7 @@ public class InfernoPlugin extends Plugin
showNpcDeaths(); showNpcDeaths();
} }
@Subscribe @Subscribe
private void onConfigChanged(ConfigChanged event) private void onConfigChanged(ConfigChanged event)
{ {
if (!"inferno".equals(event.getGroup())) if (!"inferno".equals(event.getGroup()))

View File

@@ -105,7 +105,7 @@ public class InstanceMapPlugin extends Plugin
mouseManager.unregisterMouseWheelListener(inputListener); mouseManager.unregisterMouseWheelListener(inputListener);
} }
@Subscribe @Subscribe
private void onGameStateChanged(GameStateChanged event) private void onGameStateChanged(GameStateChanged event)
{ {
overlay.onGameStateChange(event); overlay.onGameStateChange(event);

View File

@@ -105,7 +105,7 @@ public class InterfaceStylesPlugin extends Plugin
}); });
} }
@Subscribe @Subscribe
private void onConfigChanged(ConfigChanged config) private void onConfigChanged(ConfigChanged config)
{ {
if (config.getGroup().equals("interfaceStyles")) if (config.getGroup().equals("interfaceStyles"))

View File

@@ -162,7 +162,7 @@ public class InventoryTagsPlugin extends Plugin
editorMode = false; editorMode = false;
} }
@Subscribe @Subscribe
private void onWidgetMenuOptionClicked(final WidgetMenuOptionClicked event) private void onWidgetMenuOptionClicked(final WidgetMenuOptionClicked event)
{ {
if (event.getWidget() == WidgetInfo.FIXED_VIEWPORT_INVENTORY_TAB if (event.getWidget() == WidgetInfo.FIXED_VIEWPORT_INVENTORY_TAB

View File

@@ -259,7 +259,7 @@ public class ItemChargePlugin extends Plugin
lastCheckTick = -1; lastCheckTick = -1;
} }
@Subscribe @Subscribe
private void onConfigChanged(ConfigChanged event) private void onConfigChanged(ConfigChanged event)
{ {
if (!event.getGroup().equals("itemCharge")) if (!event.getGroup().equals("itemCharge"))

View File

@@ -150,7 +150,7 @@ public class ItemStatPlugin extends Plugin
clientThread.invokeLater(this::resetGEInventory); clientThread.invokeLater(this::resetGEInventory);
} }
@Subscribe @Subscribe
private void onConfigChanged(ConfigChanged event) private void onConfigChanged(ConfigChanged event)
{ {
if (event.getKey().equals("geStats")) if (event.getKey().equals("geStats"))

View File

@@ -110,7 +110,7 @@ public class KingdomPlugin extends Plugin
removeKingdomInfobox(); removeKingdomInfobox();
} }
@Subscribe @Subscribe
private void onVarbitChanged(VarbitChanged event) private void onVarbitChanged(VarbitChanged event)
{ {
updateKingdomVarbits(); updateKingdomVarbits();

View File

@@ -158,7 +158,7 @@ public class KourendLibraryPlugin extends Plugin
playerBooks = null; playerBooks = null;
} }
@Subscribe @Subscribe
private void onConfigChanged(ConfigChanged ev) private void onConfigChanged(ConfigChanged ev)
{ {
if (!KourendLibraryConfig.GROUP_KEY.equals(ev.getGroup())) if (!KourendLibraryConfig.GROUP_KEY.equals(ev.getGroup()))

View File

@@ -75,7 +75,7 @@ public class LearnToClickPlugin extends Plugin
hideOrbWidgets(false); hideOrbWidgets(false);
} }
@Subscribe @Subscribe
private void onConfigChanged(ConfigChanged event) private void onConfigChanged(ConfigChanged event)
{ {
if (!event.getGroup().equals("learntoclick")) if (!event.getGroup().equals("learntoclick"))

View File

@@ -101,7 +101,7 @@ public class LizardmenShamanPlugin extends Plugin
spawns.clear(); spawns.clear();
} }
@Subscribe @Subscribe
private void onChatMessage(ChatMessage event) private void onChatMessage(ChatMessage event)
{ {
if (this.notifyOnSpawn && /* event.getType() == ChatMessageType.GAMEMESSAGE && */event.getMessage().contains(MESSAGE)) if (this.notifyOnSpawn && /* event.getType() == ChatMessageType.GAMEMESSAGE && */event.getMessage().contains(MESSAGE))

View File

@@ -47,7 +47,7 @@ public class LootAssistPlugin extends Plugin
overlayManager.remove(lootAssistOverlay); overlayManager.remove(lootAssistOverlay);
} }
@Subscribe @Subscribe
private void onGameStateChanged(GameStateChanged event) private void onGameStateChanged(GameStateChanged event)
{ {
lootPiles.clear(); lootPiles.clear();

View File

@@ -112,7 +112,7 @@ public class LootingBagViewerPlugin extends Plugin
overlayManager.remove(widgetOverlay); overlayManager.remove(widgetOverlay);
} }
@Subscribe @Subscribe
private void onConfigChanged(ConfigChanged configChanged) private void onConfigChanged(ConfigChanged configChanged)
{ {
if (configChanged.getKey().equals("renderViewer")) if (configChanged.getKey().equals("renderViewer"))

View File

@@ -492,7 +492,7 @@ public class LootTrackerPlugin extends Plugin
chestLooted = false; chestLooted = false;
} }
@Subscribe @Subscribe
private void onGameStateChanged(final GameStateChanged event) private void onGameStateChanged(final GameStateChanged event)
{ {
if (client.getLocalPlayer() == null) if (client.getLocalPlayer() == null)

View File

@@ -55,17 +55,7 @@ public class MaxHitPlugin extends Plugin
@Inject @Inject
private Client client; private Client client;
@Override @Subscribe
protected void startUp() throws Exception
{
}
@Override
protected void shutDown() throws Exception
{
}
@Subscribe
private void onItemContainerChanged(final ItemContainerChanged event) private void onItemContainerChanged(final ItemContainerChanged event)
{ {
this.updateMaxHitWidget(); this.updateMaxHitWidget();

View File

@@ -360,7 +360,7 @@ public class MenuEntrySwapperPlugin extends Plugin
} }
} }
@Subscribe @Subscribe
private void onFocusChanged(FocusChanged event) private void onFocusChanged(FocusChanged event)
{ {
if (!event.isFocused()) if (!event.isFocused())

View File

@@ -129,7 +129,7 @@ public class MetronomePlugin extends Plugin
} }
} }
@Subscribe @Subscribe
private void onConfigChanged(ConfigChanged event) private void onConfigChanged(ConfigChanged event)
{ {
if (!event.getGroup().equals("metronome")) if (!event.getGroup().equals("metronome"))

View File

@@ -91,7 +91,7 @@ public class MinimapPlugin extends Plugin
restoreOriginalDots(); restoreOriginalDots();
} }
@Subscribe @Subscribe
private void onGameStateChanged(GameStateChanged event) private void onGameStateChanged(GameStateChanged event)
{ {
if (event.getGameState() == GameState.LOGIN_SCREEN && originalDotSprites == null) if (event.getGameState() == GameState.LOGIN_SCREEN && originalDotSprites == null)

View File

@@ -249,7 +249,7 @@ public class MotherlodePlugin extends Plugin
}); });
} }
@Subscribe @Subscribe
private void onOverlayMenuClicked(OverlayMenuClicked overlayMenuClicked) private void onOverlayMenuClicked(OverlayMenuClicked overlayMenuClicked)
{ {
OverlayMenuEntry overlayMenuEntry = overlayMenuClicked.getEntry(); OverlayMenuEntry overlayMenuEntry = overlayMenuClicked.getEntry();

View File

@@ -96,7 +96,7 @@ public class MouseHighlightPlugin extends Plugin
overlayManager.remove(overlay); overlayManager.remove(overlay);
} }
@Subscribe @Subscribe
private void onGameStateChanged(GameStateChanged event) private void onGameStateChanged(GameStateChanged event)
{ {
if (event.getGameState() == GameState.LOGGED_IN) if (event.getGameState() == GameState.LOGGED_IN)

View File

@@ -128,7 +128,7 @@ public class MusicPlugin extends Plugin
return configManager.getConfig(MusicConfig.class); return configManager.getConfig(MusicConfig.class);
} }
@Subscribe @Subscribe
private void onGameStateChanged(GameStateChanged gameStateChanged) private void onGameStateChanged(GameStateChanged gameStateChanged)
{ {
if (gameStateChanged.getGameState() == GameState.LOGIN_SCREEN) if (gameStateChanged.getGameState() == GameState.LOGIN_SCREEN)

View File

@@ -96,7 +96,7 @@ public class MusicIndicatorPlugin extends Plugin
musicTrackVarpValues.clear(); musicTrackVarpValues.clear();
} }
@Subscribe @Subscribe
private void onGameStateChanged(GameStateChanged event) private void onGameStateChanged(GameStateChanged event)
{ {
switch (event.getGameState()) switch (event.getGameState())

View File

@@ -126,7 +126,7 @@ public class NightmareZonePlugin extends Plugin
resetPointsPerHour(); resetPointsPerHour();
} }
@Subscribe @Subscribe
private void onConfigChanged(ConfigChanged event) private void onConfigChanged(ConfigChanged event)
{ {
if (!event.getGroup().equals("nightmareZone")) if (!event.getGroup().equals("nightmareZone"))

View File

@@ -242,7 +242,7 @@ public class NpcIndicatorsPlugin extends Plugin
keyManager.unregisterKeyListener(inputListener); keyManager.unregisterKeyListener(inputListener);
} }
@Subscribe @Subscribe
private void onGameStateChanged(GameStateChanged event) private void onGameStateChanged(GameStateChanged event)
{ {
if (event.getGameState() == GameState.LOGIN_SCREEN || if (event.getGameState() == GameState.LOGIN_SCREEN ||

View File

@@ -113,7 +113,7 @@ public class NpcStatusPlugin extends Plugin
memorizedNPCs.clear(); memorizedNPCs.clear();
} }
@Subscribe @Subscribe
private void onNpcSpawned(NpcSpawned npcSpawned) private void onNpcSpawned(NpcSpawned npcSpawned)
{ {
final NPC npc = npcSpawned.getNpc(); final NPC npc = npcSpawned.getNpc();

View File

@@ -140,7 +140,7 @@ public class OpenOSRSPlugin extends Plugin
} }
} }
@Subscribe @Subscribe
private void onScriptCallbackEvent(ScriptCallbackEvent e) private void onScriptCallbackEvent(ScriptCallbackEvent e)
{ {
if (!config.keyboardPin()) if (!config.keyboardPin())

View File

@@ -154,7 +154,7 @@ public class PerformanceStatsPlugin extends Plugin
reset(); reset();
} }
@Subscribe @Subscribe
private void onGameStateChanged(GameStateChanged event) private void onGameStateChanged(GameStateChanged event)
{ {
switch (event.getGameState()) switch (event.getGameState())

View File

@@ -194,7 +194,7 @@ public class PestControlPlugin extends Plugin
unloadPlugin(); unloadPlugin();
} }
@Subscribe @Subscribe
private void onConfigChanged(ConfigChanged configEvent) private void onConfigChanged(ConfigChanged configEvent)
{ {
if (configEvent.getGroup().equals("pestcontrol")) if (configEvent.getGroup().equals("pestcontrol"))

View File

@@ -154,7 +154,7 @@ public class PlayerIndicatorsPlugin extends Plugin
resultCache.clear(); resultCache.clear();
} }
@Subscribe @Subscribe
private void onInteractingChanged(InteractingChanged event) private void onInteractingChanged(InteractingChanged event)
{ {
if (!this.highlightCallerTargets || event.getSource() == null || callers.isEmpty() || !isCaller(event.getSource())) if (!this.highlightCallerTargets || event.getSource() == null || callers.isEmpty() || !isCaller(event.getSource()))

View File

@@ -157,7 +157,7 @@ public class PohPlugin extends Plugin
incenseBurners.clear(); incenseBurners.clear();
} }
@Subscribe @Subscribe
private void onConfigChanged(ConfigChanged event) private void onConfigChanged(ConfigChanged event)
{ {
if (!event.getGroup().equals("poh")) if (!event.getGroup().equals("poh"))

View File

@@ -181,7 +181,7 @@ public class PoisonPlugin extends Plugin
clientThread.invoke(this::resetHealthIcon); clientThread.invoke(this::resetHealthIcon);
} }
@Subscribe @Subscribe
private void onVarbitChanged(VarbitChanged event) private void onVarbitChanged(VarbitChanged event)
{ {
final int poisonValue = client.getVar(VarPlayer.POISON); final int poisonValue = client.getVar(VarPlayer.POISON);

View File

@@ -167,7 +167,7 @@ public class PrayAgainstPlayerPlugin extends Plugin
overlayManager.remove(overlayPrayerTab); overlayManager.remove(overlayPrayerTab);
} }
@Subscribe @Subscribe
private void onAnimationChanged(AnimationChanged animationChanged) private void onAnimationChanged(AnimationChanged animationChanged)
{ {
if ((animationChanged.getActor() instanceof Player) && (animationChanged.getActor().getInteracting() instanceof Player) && (animationChanged.getActor().getInteracting() == client.getLocalPlayer())) if ((animationChanged.getActor() instanceof Player) && (animationChanged.getActor().getInteracting() instanceof Player) && (animationChanged.getActor().getInteracting() == client.getLocalPlayer()))

View File

@@ -135,7 +135,7 @@ public class PrayerPlugin extends Plugin
removeIndicators(); removeIndicators();
} }
@Subscribe @Subscribe
private void onConfigChanged(ConfigChanged event) private void onConfigChanged(ConfigChanged event)
{ {
if (event.getGroup().equals("prayer")) if (event.getGroup().equals("prayer"))

View File

@@ -85,7 +85,7 @@ public class PrivateServerPlugin extends Plugin
client.setModulus(null); client.setModulus(null);
} }
@Subscribe @Subscribe
private void onConfigChanged(ConfigChanged event) private void onConfigChanged(ConfigChanged event)
{ {
if (!event.getGroup().equals("privateserver")) if (!event.getGroup().equals("privateserver"))

View File

@@ -281,7 +281,7 @@ public class PvpToolsPlugin extends Plugin
loaded = false; loaded = false;
} }
@Subscribe @Subscribe
private void onConfigChanged(ConfigChanged configChanged) private void onConfigChanged(ConfigChanged configChanged)
{ {
if (!"pvptools".equals(configChanged.getGroup())) if (!"pvptools".equals(configChanged.getGroup()))

View File

@@ -157,7 +157,7 @@ public class PyramidPlunderPlugin extends Plugin
reset(); reset();
} }
@Subscribe @Subscribe
private void onConfigChanged(ConfigChanged event) private void onConfigChanged(ConfigChanged event)
{ {
if (!"pyramidplunder".equals(event.getGroup())) if (!"pyramidplunder".equals(event.getGroup()))

View File

@@ -112,7 +112,7 @@ public class QuestListPlugin extends Plugin
} }
} }
@Subscribe @Subscribe
private void onGameStateChanged(GameStateChanged e) private void onGameStateChanged(GameStateChanged e)
{ {
if (e.getGameState() == GameState.LOGGING_IN) if (e.getGameState() == GameState.LOGGING_IN)

View File

@@ -332,7 +332,7 @@ public class RaidsPlugin extends Plugin
reset(); reset();
} }
@Subscribe @Subscribe
private void onConfigChanged(ConfigChanged event) private void onConfigChanged(ConfigChanged event)
{ {
if (!event.getGroup().equals("raids")) if (!event.getGroup().equals("raids"))

View File

@@ -70,7 +70,7 @@ public class ShortcutPlugin extends Plugin
overlayManager.remove(overlay); overlayManager.remove(overlay);
} }
@Subscribe @Subscribe
private void onGameObjectSpawned(GameObjectSpawned event) private void onGameObjectSpawned(GameObjectSpawned event)
{ {
WorldPoint worldPoint = WorldPoint.fromLocalInstance(client, event.getGameObject().getLocalLocation()); WorldPoint worldPoint = WorldPoint.fromLocalInstance(client, event.getGameObject().getLocalLocation());

View File

@@ -121,7 +121,7 @@ public class RaidsThievingPlugin extends Plugin
} }
@Subscribe @Subscribe
private void onGameObjectSpawned(GameObjectSpawned event) private void onGameObjectSpawned(GameObjectSpawned event)
{ {
GameObject obj = event.getGameObject(); GameObject obj = event.getGameObject();

View File

@@ -127,7 +127,7 @@ public class RandomEventPlugin extends Plugin
currentRandomEvent = null; currentRandomEvent = null;
} }
@Subscribe @Subscribe
private void onInteractingChanged(InteractingChanged event) private void onInteractingChanged(InteractingChanged event)
{ {
Actor source = event.getSource(); Actor source = event.getSource();

View File

@@ -104,7 +104,7 @@ public class RemindersPlugin extends Plugin
loginTime = null; loginTime = null;
} }
@Subscribe @Subscribe
public void onGameStateChanged(GameStateChanged event) public void onGameStateChanged(GameStateChanged event)
{ {
final GameState state = event.getGameState(); final GameState state = event.getGameState();

View File

@@ -235,7 +235,7 @@ public class ReorderPrayersPlugin extends Plugin
reorderPrayers(false); reorderPrayers(false);
} }
@Subscribe @Subscribe
private void onGameStateChanged(GameStateChanged event) private void onGameStateChanged(GameStateChanged event)
{ {
if (event.getGameState() == GameState.LOGGED_IN) if (event.getGameState() == GameState.LOGGED_IN)

View File

@@ -105,7 +105,7 @@ public class ReportButtonPlugin extends Plugin
}); });
} }
@Subscribe @Subscribe
private void onGameStateChanged(GameStateChanged event) private void onGameStateChanged(GameStateChanged event)
{ {
GameState state = event.getGameState(); GameState state = event.getGameState();

View File

@@ -101,7 +101,7 @@ public class RoguesDenPlugin extends Plugin
hasGem = false; hasGem = false;
} }
@Subscribe @Subscribe
private void onItemContainerChanged(ItemContainerChanged event) private void onItemContainerChanged(ItemContainerChanged event)
{ {
if (event.getItemContainer() != client.getItemContainer(InventoryID.INVENTORY)) if (event.getItemContainer() != client.getItemContainer(InventoryID.INVENTORY))

View File

@@ -280,7 +280,7 @@ public class ScreenshotPlugin extends Plugin
keyManager.unregisterKeyListener(hotkeyListener); keyManager.unregisterKeyListener(hotkeyListener);
} }
@Subscribe @Subscribe
private void onGameStateChanged(GameStateChanged event) private void onGameStateChanged(GameStateChanged event)
{ {
if (event.getGameState() == GameState.LOGGED_IN if (event.getGameState() == GameState.LOGGED_IN

View File

@@ -122,7 +122,7 @@ public class SkillCalculatorPlugin extends Plugin
} }
} }
@Subscribe @Subscribe
private void onConfigChanged(ConfigChanged event) private void onConfigChanged(ConfigChanged event)
{ {
if (event.getGroup().equals("skillCalculator") && event.getKey().equals("enabledBankedXp")) if (event.getGroup().equals("skillCalculator") && event.getKey().equals("enabledBankedXp"))

View File

@@ -352,7 +352,7 @@ public class SlayerPlugin extends Plugin
cachedXp = -1; cachedXp = -1;
} }
@Provides @Provides
SlayerConfig getConfig(ConfigManager configManager) SlayerConfig getConfig(ConfigManager configManager)
{ {
return configManager.getConfig(SlayerConfig.class); return configManager.getConfig(SlayerConfig.class);
@@ -1130,7 +1130,6 @@ public class SlayerPlugin extends Plugin
counter = null; counter = null;
} }
@Subscribe
void taskLookup(ChatMessage chatMessage, String message) void taskLookup(ChatMessage chatMessage, String message)
{ {
if (!this.taskCommand) if (!this.taskCommand)
@@ -1206,7 +1205,6 @@ public class SlayerPlugin extends Plugin
client.refreshChat(); client.refreshChat();
} }
@Subscribe
private void pointsLookup(ChatMessage chatMessage, String message) private void pointsLookup(ChatMessage chatMessage, String message)
{ {
if (!this.pointsCommand) if (!this.pointsCommand)

View File

@@ -91,7 +91,7 @@ public class SmeltingPlugin extends Plugin
session = null; session = null;
} }
@Subscribe @Subscribe
public void onOverlayMenuClicked(OverlayMenuClicked overlayMenuClicked) public void onOverlayMenuClicked(OverlayMenuClicked overlayMenuClicked)
{ {
OverlayMenuEntry overlayMenuEntry = overlayMenuClicked.getEntry(); OverlayMenuEntry overlayMenuEntry = overlayMenuClicked.getEntry();

View File

@@ -84,7 +84,7 @@ public class SpawnTimerPlugin extends Plugin
overlayManager.remove(SpawnTimerOverlay); overlayManager.remove(SpawnTimerOverlay);
} }
@Subscribe @Subscribe
private void onGameTick(GameTick g) private void onGameTick(GameTick g)
{ {
currentTick++; currentTick++;

View File

@@ -106,7 +106,7 @@ public class SpecialCounterPlugin extends Plugin
wsClient.unregisterMessage(SpecialCounterUpdate.class); wsClient.unregisterMessage(SpecialCounterUpdate.class);
} }
@Subscribe @Subscribe
private void onGameStateChanged(GameStateChanged event) private void onGameStateChanged(GameStateChanged event)
{ {
if (event.getGameState() == GameState.LOGGED_IN) if (event.getGameState() == GameState.LOGGED_IN)

View File

@@ -171,7 +171,7 @@ public class StatusOrbsPlugin extends Plugin
} }
} }
@Subscribe @Subscribe
private void onConfigChanged(ConfigChanged event) private void onConfigChanged(ConfigChanged event)
{ {
if (event.getGroup().equals("statusorbs")) if (event.getGroup().equals("statusorbs"))

View File

@@ -89,7 +89,7 @@ public class TearsOfGuthixPlugin extends Plugin
playerLowestSkill = null; playerLowestSkill = null;
} }
@Subscribe @Subscribe
private void onGameStateChanged(GameStateChanged event) private void onGameStateChanged(GameStateChanged event)
{ {
switch (event.getGameState()) switch (event.getGameState())

View File

@@ -150,7 +150,7 @@ public class TheatrePlugin extends Plugin
overlayManager.remove(overlay); overlayManager.remove(overlay);
} }
@Subscribe @Subscribe
private void onAnimationChanged(AnimationChanged event) private void onAnimationChanged(AnimationChanged event)
{ {
if (verzikHandler != null) if (verzikHandler != null)

View File

@@ -118,7 +118,7 @@ public class ThievingPlugin extends Plugin
session = null; session = null;
} }
@Subscribe @Subscribe
private void onGameStateChanged(GameStateChanged event) private void onGameStateChanged(GameStateChanged event)
{ {
if (event.getGameState() == GameState.LOGGED_IN) if (event.getGameState() == GameState.LOGGED_IN)

View File

@@ -116,7 +116,7 @@ public class TickTimersPlugin extends Plugin
validRegion = false; validRegion = false;
} }
@Subscribe @Subscribe
private void onGameStateChanged(GameStateChanged gameStateChanged) private void onGameStateChanged(GameStateChanged gameStateChanged)
{ {
if (gameStateChanged.getGameState() != GameState.LOGGED_IN) if (gameStateChanged.getGameState() != GameState.LOGGED_IN)

Some files were not shown because too many files have changed in this diff Show More