Archiviert
1
0
Dieser Commit ist enthalten in:
yoyosource 2023-02-21 20:38:19 +01:00
Ursprung 9dd3cb7697
Commit 87db98a310
3 geänderte Dateien mit 3 neuen und 3 gelöschten Zeilen

Datei anzeigen

@ -81,7 +81,7 @@ public class JoinmeCommand extends SWCommand {
}
}
@ClassMapper(ProxiedPlayer.class)
@ClassValidator(ProxiedPlayer.class)
public TypeValidator<ProxiedPlayer> playerMapper() {
return (sender, value, messageSender) -> {
if (value == null || !value.isConnected()) {

Datei anzeigen

@ -445,7 +445,7 @@ public class TeamCommand extends SWCommand {
}
@Register("event")
public void event(ProxiedPlayer player, String[] args){
public void event(ProxiedPlayer player, String... args){
SteamwarUser user = SteamwarUser.get(player.getUniqueId());
Team team = Team.get(user.getTeam());
if(notInTeam(player, user))

Datei anzeigen

@ -32,7 +32,7 @@ public class TeamchatCommand extends SWCommand {
super("tc", "","teamchat");
}
@Register
@Register(description = "TC_USAGE")
public void genericCommand(ProxiedPlayer player, @ErrorMessage(value = "TC_USAGE", allowEAs = false) String... args) {
ChatSender sender = ChatSender.of(player);
SteamwarUser user = sender.user();