Archiviert
1
0

Fix Team and ServerTeamchatCommand

Dieser Commit ist enthalten in:
Chaoscaot 2021-02-05 11:25:33 +01:00
Ursprung a840671ced
Commit 7e9cc37e2d
2 geänderte Dateien mit 2 neuen und 2 gelöschten Zeilen

Datei anzeigen

@ -56,7 +56,7 @@ public class ServerTeamchatCommand extends BasicCommand {
for (ProxiedPlayer target : ProxyServer.getInstance().getPlayers()){ for (ProxiedPlayer target : ProxyServer.getInstance().getPlayers()){
if ((target.hasPermission("bungeecore.teamchat")) if ((target.hasPermission("bungeecore.teamchat"))
&& target.getChatMode() == ProxiedPlayer.ChatMode.SHOWN){ && target.getChatMode() == ProxiedPlayer.ChatMode.SHOWN){
Message.send("STC_FORMAT", target, sender.getName(), message); Message.sendPrefixless("STC_FORMAT", target, sender.getName(), message);
} }
} }
} }

Datei anzeigen

@ -59,7 +59,7 @@ public class TeamchatCommand extends BasicCommand {
SteamwarUser targetuser = SteamwarUser.get(target.getUniqueId()); SteamwarUser targetuser = SteamwarUser.get(target.getUniqueId());
if (targetuser.getTeam() == user.getTeam() if (targetuser.getTeam() == user.getTeam()
&& target.getChatMode() == ProxiedPlayer.ChatMode.SHOWN){ && target.getChatMode() == ProxiedPlayer.ChatMode.SHOWN){
Message.send("TC_FORMAT", target, player.getName(), msg); Message.sendPrefixless("TC_FORMAT", target, player.getName(), msg);
} }
} }
} }