Treasure chest coin checker for test servers

This commit is contained in:
LCastr0 2016-05-15 20:43:46 -03:00
parent 4ebf48bd45
commit 511726f72a

View File

@ -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;
}