Cancel all the tasks for this plugin when shutting down.

This commit is contained in:
graywolf336 2014-07-21 18:20:04 -05:00
parent 1c92f90ccc
commit 70b2fbe1e1

View File

@ -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;