mirror of
https://github.com/SpigotMC/BungeeCord.git
synced 2024-11-24 03:05:49 +01:00
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" );
|
||||
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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user