diff --git a/Plugins/Mineplex.Core/src/mineplex/core/treasure/TreasureLocation.java b/Plugins/Mineplex.Core/src/mineplex/core/treasure/TreasureLocation.java index f76338941..ee1cbb6eb 100644 --- a/Plugins/Mineplex.Core/src/mineplex/core/treasure/TreasureLocation.java +++ b/Plugins/Mineplex.Core/src/mineplex/core/treasure/TreasureLocation.java @@ -116,12 +116,20 @@ public class TreasureLocation implements Listener @Override public void run(Boolean success) { + + boolean testServer = _treasureManager.getPlugin().getConfig().getString("serverstatus.group").equalsIgnoreCase("Testing"); + // COIN TEST PURPOSES, WHEN RELEASED, COMMENT THIS LINE! + testServer = false; + // COIN TEST PURPOSES, WHEN RELEASED, COMMENT THIS LINE! + if (!success) { player.sendMessage(F.main("Treasure", "You don't have any chests to open!")); - - player.sendMessage("But like, lets just ignore that for now though ;)"); -// return; + + if (testServer) + player.sendMessage("But like, lets just ignore that for now though ;)"); + else + return; }