From ef364d9053fdc6b7eeb4a483af932f10f29be72d Mon Sep 17 00:00:00 2001 From: Thinkofdeath Date: Wed, 26 Nov 2014 16:42:45 +0000 Subject: [PATCH] Actually put the tasks in the tasksByPlugin Multimap (Fixes #1278) --- .../src/main/java/net/md_5/bungee/scheduler/BungeeScheduler.java | 1 + 1 file changed, 1 insertion(+) 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; }