diff --git a/bukkit/src/main/java/app/shopmc/plugin/bukkit/BukkitShopMCPlugin.java b/bukkit/src/main/java/app/shopmc/plugin/bukkit/BukkitShopMCPlugin.java index 641f5b2..afb0e2c 100644 --- a/bukkit/src/main/java/app/shopmc/plugin/bukkit/BukkitShopMCPlugin.java +++ b/bukkit/src/main/java/app/shopmc/plugin/bukkit/BukkitShopMCPlugin.java @@ -32,11 +32,12 @@ public void onEnable() { socket = new WebSocketClient(URI.create(serverURI)) { @Override public void onOpen(ServerHandshake handshakedata) { - Bukkit.getConsoleSender().sendMessage(ChatColor.GREEN + "ShopMC connection opened"); + Bukkit.getConsoleSender().sendMessage(ChatColor.GREEN + "[ShopMC] connection opened"); } @Override public void onMessage(String commands) { + Bukkit.getConsoleSender().sendMessage(ChatColor.GREEN + "[ShopMC] Received commands: " + ChatColor.RESET + commands); for (String command : commands.split("\n")) { Bukkit.getScheduler().runTask(_this, () -> Bukkit.dispatchCommand(getServer().getConsoleSender(), command)); } @@ -44,7 +45,7 @@ public void onMessage(String commands) { @Override public void onClose(int code, String reason, boolean remote) { - Bukkit.getConsoleSender().sendMessage(ChatColor.RED + "ShopMC connection closed"); + Bukkit.getConsoleSender().sendMessage(ChatColor.RED + "[ShopMC] connection closed"); new BukkitRunnable() { @Override public void run() {