diff options
author | Florian Rinke <develop@torui.de> | 2021-11-06 03:05:57 +0100 |
---|---|---|
committer | Florian Rinke <develop@torui.de> | 2021-11-06 03:05:57 +0100 |
commit | 3453fc835b8807637e04e28b529cd8a88ce1e098 (patch) | |
tree | 229d71ae0acf7eed5c5602c406f2003f2ade5f78 /src | |
parent | c8e84aced2868da43bc30b8843166664e4b3ae33 (diff) | |
download | COFL-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.java | 2 | ||||
-rw-r--r-- | src/main/java/de/torui/coflsky/minecraft_integration/CoflSessionManager.java | 2 |
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()); |