From e31ab1b37adf2d606a7c513d3745b3a83fe93a7b Mon Sep 17 00:00:00 2001 From: Chiss Date: Sat, 13 Sep 2014 16:44:51 +1000 Subject: [PATCH] disabled treasure again! --- .../src/mineplex/core/treasure/TreasureManager.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Plugins/Mineplex.Core/src/mineplex/core/treasure/TreasureManager.java b/Plugins/Mineplex.Core/src/mineplex/core/treasure/TreasureManager.java index 21d5c03f0..858ac39fa 100644 --- a/Plugins/Mineplex.Core/src/mineplex/core/treasure/TreasureManager.java +++ b/Plugins/Mineplex.Core/src/mineplex/core/treasure/TreasureManager.java @@ -391,8 +391,11 @@ public class TreasureManager extends MiniPlugin @EventHandler public void command(PlayerCommandPreprocessEvent event) { + if (!event.getPlayer().isOp()) + return; + //TODO Remove - if (event.getMessage().startsWith("/treasure")) + if (event.getMessage().startsWith("/treasuredebug")) { event.getPlayer().sendMessage("Attempting to open treasure..."); attemptOpenTreasure(event.getPlayer());