aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorFlorian Rinke <develop@torui.de>2021-11-06 03:05:57 +0100
committerFlorian Rinke <develop@torui.de>2021-11-06 03:05:57 +0100
commit3453fc835b8807637e04e28b529cd8a88ce1e098 (patch)
tree229d71ae0acf7eed5c5602c406f2003f2ade5f78 /src
parentc8e84aced2868da43bc30b8843166664e4b3ae33 (diff)
downloadCOFL-3453fc835b8807637e04e28b529cd8a88ce1e098.tar.gz
COFL-3453fc835b8807637e04e28b529cd8a88ce1e098.tar.bz2
COFL-3453fc835b8807637e04e28b529cd8a88ce1e098.zip
minor fix for /cofl status
Diffstat (limited to 'src')
-rw-r--r--src/main/java/de/torui/coflsky/CoflSkyCommand.java2
-rw-r--r--src/main/java/de/torui/coflsky/minecraft_integration/CoflSessionManager.java2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/de/torui/coflsky/CoflSkyCommand.java b/src/main/java/de/torui/coflsky/CoflSkyCommand.java
index 411a943..e7ba17c 100644
--- a/src/main/java/de/torui/coflsky/CoflSkyCommand.java
+++ b/src/main/java/de/torui/coflsky/CoflSkyCommand.java
@@ -145,7 +145,7 @@ public class CoflSkyCommand extends CommandBase {
try {
CoflSession session = CoflSessionManager.GetCoflSession(PlayerDataProvider.getUsername());
- String sessionString = WSClient.gson.toJson(session);
+ String sessionString = CoflSessionManager.gson.toJson(session);
status += " session=" + sessionString;
} catch (IOException e) {
}
diff --git a/src/main/java/de/torui/coflsky/minecraft_integration/CoflSessionManager.java b/src/main/java/de/torui/coflsky/minecraft_integration/CoflSessionManager.java
index 49f18f7..6f74bf4 100644
--- a/src/main/java/de/torui/coflsky/minecraft_integration/CoflSessionManager.java
+++ b/src/main/java/de/torui/coflsky/minecraft_integration/CoflSessionManager.java
@@ -29,7 +29,7 @@ import com.google.gson.stream.JsonWriter;
import net.minecraftforge.fml.common.Loader;
public class CoflSessionManager {
- private static Gson gson = new GsonBuilder() .registerTypeAdapter(ZonedDateTime.class, new TypeAdapter<ZonedDateTime>() {
+ public static Gson gson = new GsonBuilder() .registerTypeAdapter(ZonedDateTime.class, new TypeAdapter<ZonedDateTime>() {
@Override
public void write(JsonWriter out, ZonedDateTime value) throws IOException {
out.value(value.toString());