Put hiders in adventure mode so they can't glitch through blocks

This commit is contained in:
selfslaughter 2020-04-27 18:18:28 +10:00
parent 498c078386
commit f37387800e

View File

@ -432,7 +432,11 @@ public class BlockHunt extends JavaPlugin implements Listener {
for (Player pl : arena.playersInArena) {
pl.setLevel(arena.timer);
pl.setGameMode(GameMode.SURVIVAL);
if (arena.seekers.contains(pl)) {
pl.setGameMode(GameMode.SURVIVAL);
} else {
pl.setGameMode(GameMode.ADVENTURE);
}
}
}
SignsHandler.updateSigns(); //TODO Only do this when needed (gamestate change or player count change)