port_to_commandframework #457
@ -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()) {
|
||||
|
@ -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))
|
||||
|
@ -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();
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren