Put hiders in adventure mode so they can't glitch through blocks
This commit is contained in:
parent
498c078386
commit
f37387800e
@ -432,7 +432,11 @@ public class BlockHunt extends JavaPlugin implements Listener {
|
|||||||
|
|
||||||
for (Player pl : arena.playersInArena) {
|
for (Player pl : arena.playersInArena) {
|
||||||
pl.setLevel(arena.timer);
|
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)
|
SignsHandler.updateSigns(); //TODO Only do this when needed (gamestate change or player count change)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user