From 186592f0ecc877f2718923339983bf319e3652ef Mon Sep 17 00:00:00 2001 From: Chaoscaot Date: Sun, 24 Apr 2022 21:07:42 +0200 Subject: [PATCH] :tada: Add Network Packets --- .../packets/client/TablistNamePacket.java | 36 ------------------- .../network/packets/server/PingPacket.java | 2 ++ .../packets/server/ServerNetworkHandler.java | 1 - 3 files changed, 2 insertions(+), 37 deletions(-) delete mode 100644 src/de/steamwar/network/packets/client/TablistNamePacket.java diff --git a/src/de/steamwar/network/packets/client/TablistNamePacket.java b/src/de/steamwar/network/packets/client/TablistNamePacket.java deleted file mode 100644 index c8d2fed..0000000 --- a/src/de/steamwar/network/packets/client/TablistNamePacket.java +++ /dev/null @@ -1,36 +0,0 @@ -/* - * This file is a part of the SteamWar software. - * - * Copyright (C) 2022 SteamWar.de-Serverteam - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ - -package de.steamwar.network.packets.client; - -import de.steamwar.network.packets.server.ServerNetworkHandler; -import lombok.Data; - -@Data -public class TablistNamePacket extends ClientPacket { - - private static final long serialVersionUID = -1709089784235478752L; - private int player; - private String tablistName; - - @Override - public void handle(ServerNetworkHandler handler) { - handler.handle(this); - } -} diff --git a/src/de/steamwar/network/packets/server/PingPacket.java b/src/de/steamwar/network/packets/server/PingPacket.java index d9a07ec..f40dbb1 100644 --- a/src/de/steamwar/network/packets/server/PingPacket.java +++ b/src/de/steamwar/network/packets/server/PingPacket.java @@ -20,7 +20,9 @@ package de.steamwar.network.packets.server; import de.steamwar.network.packets.client.ClientNetworkHandler; +import lombok.Data; +@Data public class PingPacket extends ServerPacket { private static final long serialVersionUID = 714647343959550378L; private int id; diff --git a/src/de/steamwar/network/packets/server/ServerNetworkHandler.java b/src/de/steamwar/network/packets/server/ServerNetworkHandler.java index c418380..28c55f5 100644 --- a/src/de/steamwar/network/packets/server/ServerNetworkHandler.java +++ b/src/de/steamwar/network/packets/server/ServerNetworkHandler.java @@ -27,5 +27,4 @@ public abstract class ServerNetworkHandler extends NetworkHandler { public void handle(ImALobbyPacket packet) {} public void handle(InventoryCallbackPacket packet) {} public void handle(PrepareSchemPacket packet) {} - public void handle(TablistNamePacket packet) {} }