From df37fa15647efea4407bae4540e47829f0b74e3e Mon Sep 17 00:00:00 2001 From: YoyoNow Date: Mon, 25 Nov 2024 17:02:06 +0100 Subject: [PATCH] Hotfix SendCommand sending on random servers --- .../src/de/steamwar/velocitycore/commands/SendCommand.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/VelocityCore/src/de/steamwar/velocitycore/commands/SendCommand.java b/VelocityCore/src/de/steamwar/velocitycore/commands/SendCommand.java index 660a4ec3..de9a73f3 100644 --- a/VelocityCore/src/de/steamwar/velocitycore/commands/SendCommand.java +++ b/VelocityCore/src/de/steamwar/velocitycore/commands/SendCommand.java @@ -70,7 +70,7 @@ public class SendCommand extends SWCommand { public RegisteredServer map(Chatter sender, PreviousArguments previousArguments, String s) { SteamwarUser user = sender.user(); for (RegisteredServer registeredServer : VelocityCore.getProxy().getAllServers()) { - if (check(user, registeredServer)) { + if (registeredServer.getServerInfo().getName().equalsIgnoreCase(s) && check(user, registeredServer)) { return registeredServer; } }