Revert adventure mode change
This commit is contained in:
parent
f261b203c2
commit
498c078386
@ -114,7 +114,7 @@ public class ArenaHandler {
|
|||||||
|
|
||||||
MemoryStorage.pData.put(player, pad);
|
MemoryStorage.pData.put(player, pad);
|
||||||
|
|
||||||
player.setGameMode(GameMode.ADVENTURE);
|
player.setGameMode(GameMode.SURVIVAL);
|
||||||
for (PotionEffect pe : player.getActivePotionEffects()) {
|
for (PotionEffect pe : player.getActivePotionEffects()) {
|
||||||
player.removePotionEffect(pe.getType());
|
player.removePotionEffect(pe.getType());
|
||||||
}
|
}
|
||||||
|
@ -432,7 +432,7 @@ 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.ADVENTURE);
|
pl.setGameMode(GameMode.SURVIVAL);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
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)
|
||||||
|
@ -145,7 +145,7 @@ public class OnEntityDamageByEntityEvent implements Listener {
|
|||||||
DisguiseAPI.undisguiseToAll(player);
|
DisguiseAPI.undisguiseToAll(player);
|
||||||
MemoryStorage.seekertime.put(player, arena.waitingTimeSeeker);
|
MemoryStorage.seekertime.put(player, arena.waitingTimeSeeker);
|
||||||
PlayerHandler.teleport(player, arena.seekersWarp);
|
PlayerHandler.teleport(player, arena.seekersWarp);
|
||||||
player.setGameMode(GameMode.ADVENTURE);
|
player.setGameMode(GameMode.SURVIVAL);
|
||||||
player.setWalkSpeed(0.3F);
|
player.setWalkSpeed(0.3F);
|
||||||
|
|
||||||
// Fix for client not showing players after they join
|
// Fix for client not showing players after they join
|
||||||
|
Loading…
x
Reference in New Issue
Block a user