Cancel all the tasks for this plugin when shutting down.
This commit is contained in:
parent
1c92f90ccc
commit
70b2fbe1e1
@ -127,6 +127,8 @@ public class JailMain extends JavaPlugin {
|
||||
if(io != null)
|
||||
io.closeConnection();
|
||||
|
||||
getServer().getScheduler().cancelTasks(this);
|
||||
|
||||
update = null;
|
||||
jt = null;
|
||||
sbm = null;
|
||||
|
Loading…
Reference in New Issue
Block a user