diff --git a/proxy/src/main/java/net/md_5/bungee/scheduler/BungeeScheduler.java b/proxy/src/main/java/net/md_5/bungee/scheduler/BungeeScheduler.java index 2f899965..418e9210 100644 --- a/proxy/src/main/java/net/md_5/bungee/scheduler/BungeeScheduler.java +++ b/proxy/src/main/java/net/md_5/bungee/scheduler/BungeeScheduler.java @@ -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; }