From 8ce26e0370a8f906f2016d78a2615029ca65cbc1 Mon Sep 17 00:00:00 2001 From: md_5 Date: Tue, 8 Jul 2014 15:53:25 +1000 Subject: [PATCH] Pass plugin into executor getter for future proofing --- .../main/java/net/md_5/bungee/api/scheduler/TaskScheduler.java | 2 +- .../main/java/net/md_5/bungee/scheduler/BungeeScheduler.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/api/src/main/java/net/md_5/bungee/api/scheduler/TaskScheduler.java b/api/src/main/java/net/md_5/bungee/api/scheduler/TaskScheduler.java index 359c36325..5d2b088cd 100644 --- a/api/src/main/java/net/md_5/bungee/api/scheduler/TaskScheduler.java +++ b/api/src/main/java/net/md_5/bungee/api/scheduler/TaskScheduler.java @@ -88,6 +88,6 @@ public interface TaskScheduler * * @return the underlying executor service or compatible wrapper */ - ExecutorService getExecutorService(); + ExecutorService getExecutorService(Plugin plugin); } } 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 06568a90c..2d0cc2da2 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 @@ -30,7 +30,7 @@ public class BungeeScheduler implements TaskScheduler { @Override - public ExecutorService getExecutorService() + public ExecutorService getExecutorService(Plugin plugin) { return s; }