From 1f1dcff9b5dbf8eb4cceafbc6da55cd1a09b4f24 Mon Sep 17 00:00:00 2001 From: Lixfel Date: Sun, 19 Jun 2022 15:24:06 +0200 Subject: [PATCH] Fix chat spoofing Signed-off-by: Lixfel --- src/de/steamwar/bungeecore/commands/BauCommand.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/de/steamwar/bungeecore/commands/BauCommand.java b/src/de/steamwar/bungeecore/commands/BauCommand.java index fb28fd8..ee6181a 100644 --- a/src/de/steamwar/bungeecore/commands/BauCommand.java +++ b/src/de/steamwar/bungeecore/commands/BauCommand.java @@ -25,6 +25,7 @@ import de.steamwar.bungeecore.inventory.SWItem; import de.steamwar.bungeecore.network.NetworkSender; import de.steamwar.bungeecore.sql.BauweltMember; import de.steamwar.bungeecore.sql.SteamwarUser; +import de.steamwar.bungeecore.util.Chat19; import de.steamwar.messages.ChatSender; import de.steamwar.network.packets.server.BaumemberUpdatePacket; import net.md_5.bungee.api.CommandSender; @@ -60,7 +61,7 @@ public class BauCommand extends BasicCommand { teleport(p, args); break; case "info": - p.chat("/bauinfo"); + Chat19.chat(p, "/bauinfo"); break; case "togglewe": togglewe(p, args);