Actually put the tasks in the tasksByPlugin Multimap (Fixes #1278)
This commit is contained in:
parent
f19cc7fe4f
commit
ef364d9053
@ -81,6 +81,7 @@ public class BungeeScheduler implements TaskScheduler
|
|||||||
Preconditions.checkNotNull( task, "task" );
|
Preconditions.checkNotNull( task, "task" );
|
||||||
BungeeTask prepared = new BungeeTask( this, taskCounter.getAndIncrement(), owner, task, delay, period, unit );
|
BungeeTask prepared = new BungeeTask( this, taskCounter.getAndIncrement(), owner, task, delay, period, unit );
|
||||||
tasks.put( prepared.getId(), prepared );
|
tasks.put( prepared.getId(), prepared );
|
||||||
|
tasksByPlugin.put( owner, prepared );
|
||||||
owner.getExecutorService().execute( prepared );
|
owner.getExecutorService().execute( prepared );
|
||||||
return prepared;
|
return prepared;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user