Verified Commit 4397866a authored by Gigadoc 2's avatar Gigadoc 2

do minimal cleanup on disable

Can I somehow test plugin reloading? Is this even a thing?
parent 6f5cf834
......@@ -29,6 +29,11 @@ public class IdleShutdown extends JavaPlugin {
@Override
public void onDisable() {
// Cancel the timer and unregister all Listeners
if (this.idleTimer != null) {
this.idleTimer.cancel();
}
HandlerList.unregisterAll(this);
}
public void onTimerExpired() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment