From b2853b9dec45baebd534861c380d4e5bc5f98df3 Mon Sep 17 00:00:00 2001 From: YoyoNow Date: Mon, 14 Apr 2025 10:01:50 +0200 Subject: [PATCH] Fix RCommand being able to send offline players --- .../src/de/steamwar/velocitycore/commands/MsgCommand.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/VelocityCore/src/de/steamwar/velocitycore/commands/MsgCommand.java b/VelocityCore/src/de/steamwar/velocitycore/commands/MsgCommand.java index 8341318f..b14a827a 100644 --- a/VelocityCore/src/de/steamwar/velocitycore/commands/MsgCommand.java +++ b/VelocityCore/src/de/steamwar/velocitycore/commands/MsgCommand.java @@ -41,7 +41,7 @@ public class MsgCommand extends SWCommand { } public static void msg(PlayerChatter sender, Player target, String[] args) { - if(target == null) { + if(target == null || target.getCurrentServer().isEmpty()) { sender.system("MSG_OFFLINE"); return; }