Treasure chest coin checker for test servers
This commit is contained in:
parent
4ebf48bd45
commit
511726f72a
@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user