SteamWar/FightSystem
Archiviert
13
1
Dieser Commit ist enthalten in:
Chaoscaot 2021-04-01 00:25:04 +02:00
Ursprung ed5081d323
Commit 2c033cdce8

Datei anzeigen

@ -98,10 +98,10 @@ public class DenyWorldInteraction implements Listener {
public void onPlayerJoin(PlayerJoinEvent event) { public void onPlayerJoin(PlayerJoinEvent event) {
if(FightSystem.ISAPRIL) { if(FightSystem.ISAPRIL) {
PacketContainer demo = ProtocolLibrary.getProtocolManager().createPacket(PacketType.Play.Server.GAME_STATE_CHANGE); PacketContainer demo = ProtocolLibrary.getProtocolManager().createPacket(PacketType.Play.Server.GAME_STATE_CHANGE);
demo.getBytes().write(0, (byte) 5); demo.getIntegers().write(0, 5);
demo.getFloat().write(0, 0F); demo.getFloat().write(0, 0F);
PacketContainer rain = ProtocolLibrary.getProtocolManager().createPacket(PacketType.Play.Server.GAME_STATE_CHANGE); PacketContainer rain = ProtocolLibrary.getProtocolManager().createPacket(PacketType.Play.Server.GAME_STATE_CHANGE);
rain.getBytes().write(0, (byte) 7); rain.getIntegers().write(0, 7);
rain.getFloat().write(0, 5F); rain.getFloat().write(0, 5F);
try { try {
ProtocolLibrary.getProtocolManager().sendServerPacket(event.getPlayer(), demo); ProtocolLibrary.getProtocolManager().sendServerPacket(event.getPlayer(), demo);