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)
|
if(io != null)
|
||||||
io.closeConnection();
|
io.closeConnection();
|
||||||
|
|
||||||
|
getServer().getScheduler().cancelTasks(this);
|
||||||
|
|
||||||
update = null;
|
update = null;
|
||||||
jt = null;
|
jt = null;
|
||||||
sbm = null;
|
sbm = null;
|
||||||
|
Loading…
Reference in New Issue
Block a user