Actually put the tasks in the tasksByPlugin Multimap (Fixes #1278)

This commit is contained in:
Thinkofdeath 2014-11-26 16:42:45 +00:00
parent f19cc7fe4f
commit ef364d9053

View File

@ -81,6 +81,7 @@ public class BungeeScheduler implements TaskScheduler
Preconditions.checkNotNull( task, "task" );
BungeeTask prepared = new BungeeTask( this, taskCounter.getAndIncrement(), owner, task, delay, period, unit );
tasks.put( prepared.getId(), prepared );
tasksByPlugin.put( owner, prepared );
owner.getExecutorService().execute( prepared );
return prepared;
}