We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5a5aed3 + 84ef33b commit 08c2d2bCopy full SHA for 08c2d2b
src/main/java/pro/cloudnode/smp/smpcore/Rest.java
@@ -71,6 +71,7 @@ public Rest(final int port) {
71
72
javalin.get("/", ctx -> {
73
final @NotNull JsonObject obj = new JsonObject();
74
+ obj.addProperty("version", SMPCore.getInstance().getPluginMeta().getVersion());
75
obj.addProperty("time", SMPCore.gameTime().getTime());
76
ctx.json(obj);
77
});
0 commit comments