Properly cancel tasks!
This commit is contained in:
parent
00a0277a13
commit
89edb00c05
@ -35,6 +35,7 @@ public class BungeeScheduler implements TaskScheduler
|
|||||||
public void cancel(int id)
|
public void cancel(int id)
|
||||||
{
|
{
|
||||||
BungeeTask task = tasks.remove( id );
|
BungeeTask task = tasks.remove( id );
|
||||||
|
task.cancel();
|
||||||
tasksByPlugin.values().remove( task );
|
tasksByPlugin.values().remove( task );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user