SteamWar/BungeeCore
Archiviert
13
2

Hotfix ServerTeamchatCommand

Dieser Commit ist enthalten in:
yoyosource 2022-09-08 18:24:31 +02:00
Ursprung 150cf78607
Commit e3e68af80f

Datei anzeigen

@ -31,13 +31,7 @@ public class ServerTeamchatCommand extends SWCommand {
} }
@Register(description = "STC_USAGE") @Register(description = "STC_USAGE")
public void genericCommand(CommandSender commandSender, String... message) { public void genericCommand(CommandSender commandSender, @ErrorMessage(value = "STC_USAGE", allowEAs = false) String... message) {
ChatSender sender = ChatSender.of(commandSender); ChatListener.sendChat(ChatSender.of(commandSender), ChatSender.serverteamReceivers(), "CHAT_SERVERTEAM", null, String.join(" ", message));
if(message.length == 0) {
sender.system("STC_USAGE");
return;
}
ChatListener.sendChat(sender, ChatSender.serverteamReceivers(), "CHAT_SERVERTEAM", null, String.join(" ", message));
} }
} }