Revert adventure mode change

This commit is contained in:
selfslaughter 2020-04-24 23:20:22 +10:00
parent f261b203c2
commit 498c078386
3 changed files with 3 additions and 3 deletions

View File

@ -114,7 +114,7 @@ public class ArenaHandler {
MemoryStorage.pData.put(player, pad);
player.setGameMode(GameMode.ADVENTURE);
player.setGameMode(GameMode.SURVIVAL);
for (PotionEffect pe : player.getActivePotionEffects()) {
player.removePotionEffect(pe.getType());
}

View File

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

View File

@ -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.ADVENTURE);
player.setGameMode(GameMode.SURVIVAL);
player.setWalkSpeed(0.3F);
// Fix for client not showing players after they join