From 0c249a45822de26b742f26aa09e129a26d81d3e3 Mon Sep 17 00:00:00 2001 From: Florian Rinke Date: Fri, 5 Nov 2021 21:57:15 +0100 Subject: Implement the Reset command server msg --- src/main/java/de/torui/coflsky/CoflSkyCommand.java | 1 + src/main/java/de/torui/coflsky/commands/CommandType.java | 3 +++ 2 files changed, 4 insertions(+) diff --git a/src/main/java/de/torui/coflsky/CoflSkyCommand.java b/src/main/java/de/torui/coflsky/CoflSkyCommand.java index b48a3cd..43826f9 100644 --- a/src/main/java/de/torui/coflsky/CoflSkyCommand.java +++ b/src/main/java/de/torui/coflsky/CoflSkyCommand.java @@ -102,6 +102,7 @@ public class CoflSkyCommand extends CommandBase { } private void HandleReset() { + CoflSky.Wrapper.SendMessage(new Command(CommandType.Reset,"")); CoflSky.Wrapper.stop(); Minecraft.getMinecraft().thePlayer.addChatMessage(new ChatComponentText("Stopping Connection to CoflNet")); CoflSessionManager.DeleteAllCoflSessions(); diff --git a/src/main/java/de/torui/coflsky/commands/CommandType.java b/src/main/java/de/torui/coflsky/commands/CommandType.java index 3fac287..10b1ca3 100644 --- a/src/main/java/de/torui/coflsky/commands/CommandType.java +++ b/src/main/java/de/torui/coflsky/commands/CommandType.java @@ -26,5 +26,8 @@ public enum CommandType { @SerializedName("purchaseConfirm") PurchaseConfirm, + + @SerializedName("reset") + Reset, } -- cgit