aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorFlorian Rinke <develop@torui.de>2021-11-05 21:57:15 +0100
committerFlorian Rinke <develop@torui.de>2021-11-05 21:57:15 +0100
commit0c249a45822de26b742f26aa09e129a26d81d3e3 (patch)
tree396779fb259ee12a342c3803db5de59247c8d2a1 /src
parent39a061b57e38667987a4e38df71b5d8030222c1b (diff)
downloadCOFL-0c249a45822de26b742f26aa09e129a26d81d3e3.tar.gz
COFL-0c249a45822de26b742f26aa09e129a26d81d3e3.tar.bz2
COFL-0c249a45822de26b742f26aa09e129a26d81d3e3.zip
Implement the Reset command server msg
Diffstat (limited to 'src')
-rw-r--r--src/main/java/de/torui/coflsky/CoflSkyCommand.java1
-rw-r--r--src/main/java/de/torui/coflsky/commands/CommandType.java3
2 files changed, 4 insertions, 0 deletions
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<String>(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,
}