From 625f1698cdc08e82137f0b8f01522e5d34f8efc8 Mon Sep 17 00:00:00 2001 From: boy0001 Date: Sun, 22 Feb 2015 18:07:29 +1100 Subject: [PATCH] inbox --- .../java/com/intellectualcrafters/plot/commands/Inbox.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/PlotSquared/src/main/java/com/intellectualcrafters/plot/commands/Inbox.java b/PlotSquared/src/main/java/com/intellectualcrafters/plot/commands/Inbox.java index b64e26082..03ecb900d 100644 --- a/PlotSquared/src/main/java/com/intellectualcrafters/plot/commands/Inbox.java +++ b/PlotSquared/src/main/java/com/intellectualcrafters/plot/commands/Inbox.java @@ -25,8 +25,6 @@ import java.util.Arrays; import java.util.List; import java.util.UUID; -import org.bukkit.Bukkit; - import com.intellectualcrafters.plot.PlotSquared; import com.intellectualcrafters.plot.config.C; import com.intellectualcrafters.plot.database.DBFunc; @@ -35,6 +33,8 @@ import com.intellectualcrafters.plot.object.Plot; import com.intellectualcrafters.plot.object.PlotComment; import com.intellectualcrafters.plot.object.PlotPlayer; import com.intellectualcrafters.plot.util.MainUtil; +import com.intellectualcrafters.plot.util.Permissions; +import com.intellectualcrafters.plot.util.TaskManager; import com.intellectualcrafters.plot.util.bukkit.BukkitPlayerFunctions; import com.intellectualcrafters.plot.util.bukkit.UUIDHandler; @@ -134,7 +134,7 @@ public class Inbox extends SubCommand { } final String world = loc.getWorld(); final int tier2 = tier; - Bukkit.getScheduler().runTaskAsynchronously(PlotSquared.getMain(), new Runnable() { + TaskManager.runTaskAsync(new Runnable() { @Override public void run() { ArrayList comments = null;