This commit is contained in:
MattBDev 2016-07-19 10:22:50 -04:00
parent c1d4c481fb
commit 8b084839fd
2 changed files with 4 additions and 1 deletions

View File

@ -166,6 +166,9 @@ public class FlagCmd extends SubCommand {
return false; return false;
} }
} }
if(flag == Flags.TIME) {
player.setTime(Long.MAX_VALUE);
}
MainUtil.sendMessage(player, C.FLAG_REMOVED); MainUtil.sendMessage(player, C.FLAG_REMOVED);
return true; return true;
} }

View File

@ -209,7 +209,7 @@ public class PlotListener {
PlotGameMode gameMode = player.getGameMode(); PlotGameMode gameMode = player.getGameMode();
if (gameMode == PlotGameMode.SURVIVAL || gameMode == PlotGameMode.ADVENTURE) { if (gameMode == PlotGameMode.SURVIVAL || gameMode == PlotGameMode.ADVENTURE) {
player.setFlight(false); player.setFlight(false);
} else if (player.getFlight() != true) { } else if (!player.getFlight()) {
player.setFlight(true); player.setFlight(true);
} }
} }