From 26f26b91d81d28c533b9714b8af328ea02f6d86d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robin=20Gabri=C3=ABl?= Date: Sat, 20 Jul 2019 10:32:09 +0200 Subject: [PATCH] v10.1 --- pom.xml | 2 +- .../java/com/mcserversoft/mcsscommunicator/HTTPClient.java | 4 ++-- src/main/resources/plugin.yml | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/pom.xml b/pom.xml index fd29e13..6893292 100644 --- a/pom.xml +++ b/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.mcserversoft MCSSCommunicator - 1.0 + 10.1 jar UTF-8 diff --git a/src/main/java/com/mcserversoft/mcsscommunicator/HTTPClient.java b/src/main/java/com/mcserversoft/mcsscommunicator/HTTPClient.java index bec7544..e6766eb 100644 --- a/src/main/java/com/mcserversoft/mcsscommunicator/HTTPClient.java +++ b/src/main/java/com/mcserversoft/mcsscommunicator/HTTPClient.java @@ -54,8 +54,8 @@ public void post(String path, String json) { .post(body) .build(); - if (debug) { - try (Response response = client.newCall(request).execute()) { + try (Response response = client.newCall(request).execute()) { + if (debug) { getLogger().info(String.format("[DEBUG] %s", response.body().string())); getLogger().info(String.format("[DEBUG] %s", response.code())); } diff --git a/src/main/resources/plugin.yml b/src/main/resources/plugin.yml index b3d6034..a5fe046 100644 --- a/src/main/resources/plugin.yml +++ b/src/main/resources/plugin.yml @@ -1,5 +1,5 @@ name: MCSSCommunicator -version: 1.0 +version: 10.1 description: Core-element of MC Server Soft. Provides real-time diagnostics and server telemetry. author: Fireblade115 a.k.a. Fiahblade website: https://www.mcserversoft.com/