From b3f8a0d0d5f16b7479d7c6344136f4935ad6df13 Mon Sep 17 00:00:00 2001 From: Pierre Kisters Date: Sun, 16 Aug 2020 14:49:21 +0200 Subject: [PATCH] fixed command response being sent to all players --- .../src/main/java/org/dynmap/forge_1_16_1/DynmapPlugin.java | 2 +- .../src/main/java/org/dynmap/forge_1_16_2/DynmapPlugin.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/forge-1.16.1/src/main/java/org/dynmap/forge_1_16_1/DynmapPlugin.java b/forge-1.16.1/src/main/java/org/dynmap/forge_1_16_1/DynmapPlugin.java index 240fb2f6..cef1e9b4 100644 --- a/forge-1.16.1/src/main/java/org/dynmap/forge_1_16_1/DynmapPlugin.java +++ b/forge-1.16.1/src/main/java/org/dynmap/forge_1_16_1/DynmapPlugin.java @@ -1288,7 +1288,7 @@ public class DynmapPlugin public void sendMessage(String msg) { ITextComponent ichatcomponent = new StringTextComponent(msg); - server.getPlayerList().func_232641_a_(ichatcomponent, ChatType.CHAT, player.getUniqueID()); + player.sendMessage(ichatcomponent, Util.field_240973_b_); } @Override public boolean isInvisible() { diff --git a/forge-1.16.2/src/main/java/org/dynmap/forge_1_16_2/DynmapPlugin.java b/forge-1.16.2/src/main/java/org/dynmap/forge_1_16_2/DynmapPlugin.java index 3b361c21..d5afe09c 100644 --- a/forge-1.16.2/src/main/java/org/dynmap/forge_1_16_2/DynmapPlugin.java +++ b/forge-1.16.2/src/main/java/org/dynmap/forge_1_16_2/DynmapPlugin.java @@ -1298,7 +1298,7 @@ public class DynmapPlugin public void sendMessage(String msg) { ITextComponent ichatcomponent = new StringTextComponent(msg); - server.getPlayerList().func_232641_a_(ichatcomponent, ChatType.CHAT, player.getUniqueID()); + player.sendMessage(ichatcomponent, Util.field_240973_b_); } @Override public boolean isInvisible() {