imp plugin: cleanup
Add imp tag, remove unnecessary declared exceptions, and clear npcs on shutdown
This commit is contained in:
@@ -42,13 +42,10 @@ import net.runelite.client.plugins.Plugin;
|
|||||||
import net.runelite.client.plugins.PluginDescriptor;
|
import net.runelite.client.plugins.PluginDescriptor;
|
||||||
import net.runelite.client.ui.overlay.OverlayManager;
|
import net.runelite.client.ui.overlay.OverlayManager;
|
||||||
|
|
||||||
/**
|
|
||||||
* @author robin
|
|
||||||
*/
|
|
||||||
@PluginDescriptor(
|
@PluginDescriptor(
|
||||||
name = "Implings",
|
name = "Implings",
|
||||||
description = "Highlight nearby implings on the minimap and on-screen",
|
description = "Highlight nearby implings on the minimap and on-screen",
|
||||||
tags = {"hunter", "minimap", "overlay"}
|
tags = {"hunter", "minimap", "overlay", "imp"}
|
||||||
)
|
)
|
||||||
public class ImplingsPlugin extends Plugin
|
public class ImplingsPlugin extends Plugin
|
||||||
{
|
{
|
||||||
@@ -73,17 +70,17 @@ public class ImplingsPlugin extends Plugin
|
|||||||
return configManager.getConfig(ImplingsConfig.class);
|
return configManager.getConfig(ImplingsConfig.class);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void startUp() throws Exception
|
protected void startUp()
|
||||||
{
|
{
|
||||||
overlayManager.add(overlay);
|
overlayManager.add(overlay);
|
||||||
overlayManager.add(minimapOverlay);
|
overlayManager.add(minimapOverlay);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void shutDown() throws Exception
|
protected void shutDown()
|
||||||
{
|
{
|
||||||
|
implings.clear();
|
||||||
overlayManager.remove(overlay);
|
overlayManager.remove(overlay);
|
||||||
overlayManager.remove(minimapOverlay);
|
overlayManager.remove(minimapOverlay);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user