aboutsummaryrefslogtreecommitdiff
path: root/src/main/java
diff options
context:
space:
mode:
authorÄkwav <16632490+Ekwav@users.noreply.github.com>2021-11-05 23:23:16 +0100
committerGitHub <noreply@github.com>2021-11-05 23:23:16 +0100
commit52bc80f092c0ea58063008d2257b4e6f52f4b272 (patch)
tree396779fb259ee12a342c3803db5de59247c8d2a1 /src/main/java
parent39a061b57e38667987a4e38df71b5d8030222c1b (diff)
parent0c249a45822de26b742f26aa09e129a26d81d3e3 (diff)
downloadCOFL-52bc80f092c0ea58063008d2257b4e6f52f4b272.tar.gz
COFL-52bc80f092c0ea58063008d2257b4e6f52f4b272.tar.bz2
COFL-52bc80f092c0ea58063008d2257b4e6f52f4b272.zip
Merge pull request #35 from Coflnet/feature/server-reset
Implement the Reset command server msg
Diffstat (limited to 'src/main/java')
-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,
}