diff options
author | hackthetime <l4bg0jb7@duck.com> | 2023-10-10 15:23:31 +0200 |
---|---|---|
committer | hackthetime <l4bg0jb7@duck.com> | 2023-10-10 15:23:31 +0200 |
commit | 803551eac7c963edfc2b9abce690a6e4b9ceb4da (patch) | |
tree | bcdb0cb31c8ce896fb026c447285678e22a46567 /src/main/java/de | |
parent | 7fc96f359514c1ffa81ee404f721e552beb5f811 (diff) | |
download | BBsentials-803551eac7c963edfc2b9abce690a6e4b9ceb4da.tar.gz BBsentials-803551eac7c963edfc2b9abce690a6e4b9ceb4da.tar.bz2 BBsentials-803551eac7c963edfc2b9abce690a6e4b9ceb4da.zip |
removed old bugged code which was commented out already
Diffstat (limited to 'src/main/java/de')
-rw-r--r-- | src/main/java/de/hype/bbsentials/packets/PacketUtils.java | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/src/main/java/de/hype/bbsentials/packets/PacketUtils.java b/src/main/java/de/hype/bbsentials/packets/PacketUtils.java index 35ac13a..e9aeb27 100644 --- a/src/main/java/de/hype/bbsentials/packets/PacketUtils.java +++ b/src/main/java/de/hype/bbsentials/packets/PacketUtils.java @@ -57,30 +57,6 @@ public class PacketUtils { return null; } -// public static <T extends AbstractPacket> T getAsPacket(String message) { -// if (!message.contains(".")) return null; -// String packetName = message.split("\\.")[0]; -// String rawJson = message.substring(packetName.length() + 1); -// -// for (Class<? extends AbstractPacket> clazz : PacketManager.getAllPacketClasses()) { -// if (packetName.equals(clazz.getSimpleName())) { -// try { -// if (clazz.isAssignableFrom(clazz)) { -// //TODO the problem -// T parsedPacket = (T) gson.fromJson(rawJson, clazz); -// return parsedPacket; -// } -// else { -// return null; -// } -// } catch (Throwable t) { -// showError(t, "Could not process packet '" + packetName + "' from " + EnviromentPacketConfig.notEnviroment); -// } -// } -// } -// return null; -// } - public static boolean isPacket(String message, Class<? extends AbstractPacket> clazz) { if (!message.contains(".")) return false; String packetName = message.split("\\.")[0]; |