mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-26 07:06:44 +01:00
Fix #1261
This commit is contained in:
parent
c1d4c481fb
commit
8b084839fd
@ -166,6 +166,9 @@ public class FlagCmd extends SubCommand {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
if(flag == Flags.TIME) {
|
||||
player.setTime(Long.MAX_VALUE);
|
||||
}
|
||||
MainUtil.sendMessage(player, C.FLAG_REMOVED);
|
||||
return true;
|
||||
}
|
||||
|
@ -209,7 +209,7 @@ public class PlotListener {
|
||||
PlotGameMode gameMode = player.getGameMode();
|
||||
if (gameMode == PlotGameMode.SURVIVAL || gameMode == PlotGameMode.ADVENTURE) {
|
||||
player.setFlight(false);
|
||||
} else if (player.getFlight() != true) {
|
||||
} else if (!player.getFlight()) {
|
||||
player.setFlight(true);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user