Use adventure mode instead of survival so people can't glitch through floors
This commit is contained in:
parent
865b0bf3f9
commit
f261b203c2
@ -114,7 +114,7 @@ public class ArenaHandler {
|
||||
|
||||
MemoryStorage.pData.put(player, pad);
|
||||
|
||||
player.setGameMode(GameMode.SURVIVAL);
|
||||
player.setGameMode(GameMode.ADVENTURE);
|
||||
for (PotionEffect pe : player.getActivePotionEffects()) {
|
||||
player.removePotionEffect(pe.getType());
|
||||
}
|
||||
|
@ -432,7 +432,7 @@ public class BlockHunt extends JavaPlugin implements Listener {
|
||||
|
||||
for (Player pl : arena.playersInArena) {
|
||||
pl.setLevel(arena.timer);
|
||||
pl.setGameMode(GameMode.SURVIVAL);
|
||||
pl.setGameMode(GameMode.ADVENTURE);
|
||||
}
|
||||
}
|
||||
SignsHandler.updateSigns(); //TODO Only do this when needed (gamestate change or player count change)
|
||||
|
@ -145,7 +145,7 @@ public class OnEntityDamageByEntityEvent implements Listener {
|
||||
DisguiseAPI.undisguiseToAll(player);
|
||||
MemoryStorage.seekertime.put(player, arena.waitingTimeSeeker);
|
||||
PlayerHandler.teleport(player, arena.seekersWarp);
|
||||
player.setGameMode(GameMode.SURVIVAL);
|
||||
player.setGameMode(GameMode.ADVENTURE);
|
||||
player.setWalkSpeed(0.3F);
|
||||
|
||||
// Fix for client not showing players after they join
|
||||
|
Loading…
Reference in New Issue
Block a user