forked from SteamWar/SteamWar
Fix RCommand being able to send offline players
This commit is contained in:
@@ -41,7 +41,7 @@ public class MsgCommand extends SWCommand {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static void msg(PlayerChatter sender, Player target, String[] args) {
|
public static void msg(PlayerChatter sender, Player target, String[] args) {
|
||||||
if(target == null) {
|
if(target == null || target.getCurrentServer().isEmpty()) {
|
||||||
sender.system("MSG_OFFLINE");
|
sender.system("MSG_OFFLINE");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user