Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
michaljaz committed Dec 30, 2023
1 parent ab92418 commit d364839
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ public void onMessage(String message) {
Gson gson = new Gson();
JsonObject jsonObject = gson.fromJson(message, JsonObject.class);
String commands = jsonObject.get("commands").getAsString();
Bukkit.getConsoleSender().sendMessage("Received messagex: " + commands);
for (String command : commands.split("\n")) {
Bukkit.getScheduler().runTask(_this, () -> Bukkit.dispatchCommand(getServer().getConsoleSender(), command));
}
Expand Down

0 comments on commit d364839

Please sign in to comment.