Properly cancel tasks!

This commit is contained in:
md_5 2013-09-05 19:52:41 +10:00
parent 00a0277a13
commit 89edb00c05

View File

@ -35,6 +35,7 @@ public class BungeeScheduler implements TaskScheduler
public void cancel(int id)
{
BungeeTask task = tasks.remove( id );
task.cancel();
tasksByPlugin.values().remove( task );
}