Fix some formatting
This commit is contained in:
parent
8a389a13a2
commit
9d0eca5031
@ -272,7 +272,8 @@ public class HideSeek extends TeamGame
|
||||
|
||||
break;
|
||||
}
|
||||
} else if (packetInfo.getPacket() instanceof PacketPlayOutEntityDestroy)
|
||||
}
|
||||
else if (packetInfo.getPacket() instanceof PacketPlayOutEntityDestroy)
|
||||
{
|
||||
for (int i : ((PacketPlayOutEntityDestroy) packetInfo.getPacket()).a)
|
||||
{
|
||||
@ -374,7 +375,7 @@ public class HideSeek extends TeamGame
|
||||
@EventHandler
|
||||
public void onPlayerTeleport(PlayerPrepareTeleportEvent event)
|
||||
{
|
||||
if(_hiders.GetPlayers(false).contains(event.GetPlayer()))
|
||||
if (_hiders.GetPlayers(false).contains(event.GetPlayer()))
|
||||
{
|
||||
event.GetPlayer().setGameMode(GameMode.ADVENTURE);
|
||||
}
|
||||
@ -387,7 +388,8 @@ public class HideSeek extends TeamGame
|
||||
{
|
||||
this.getArcadeManager().getPacketHandler().addPacketHandler(_blockDisguise, PacketPlayOutSpawnEntityLiving.class, PacketPlayOutEntityDestroy.class);
|
||||
this.getArcadeManager().getPacketHandler().addPacketHandler(_useEntity, true, PacketPlayInUseEntity.class);
|
||||
} else if (event.GetState() == GameState.Dead)
|
||||
}
|
||||
else if (event.GetState() == GameState.Dead)
|
||||
{
|
||||
this.getArcadeManager().getPacketHandler().removePacketHandler(_blockDisguise);
|
||||
this.getArcadeManager().getPacketHandler().removePacketHandler(_useEntity);
|
||||
|
Loading…
Reference in New Issue
Block a user