From 87db98a310649cceee6bd674dae0c1bc6c180762 Mon Sep 17 00:00:00 2001 From: yoyosource Date: Tue, 21 Feb 2023 20:38:19 +0100 Subject: [PATCH] Fix 3 things --- src/de/steamwar/bungeecore/commands/JoinmeCommand.java | 2 +- src/de/steamwar/bungeecore/commands/TeamCommand.java | 2 +- src/de/steamwar/bungeecore/commands/TeamchatCommand.java | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/de/steamwar/bungeecore/commands/JoinmeCommand.java b/src/de/steamwar/bungeecore/commands/JoinmeCommand.java index 7b707e54..b705c8dc 100644 --- a/src/de/steamwar/bungeecore/commands/JoinmeCommand.java +++ b/src/de/steamwar/bungeecore/commands/JoinmeCommand.java @@ -81,7 +81,7 @@ public class JoinmeCommand extends SWCommand { } } - @ClassMapper(ProxiedPlayer.class) + @ClassValidator(ProxiedPlayer.class) public TypeValidator playerMapper() { return (sender, value, messageSender) -> { if (value == null || !value.isConnected()) { diff --git a/src/de/steamwar/bungeecore/commands/TeamCommand.java b/src/de/steamwar/bungeecore/commands/TeamCommand.java index dbe2ad77..877b2a26 100644 --- a/src/de/steamwar/bungeecore/commands/TeamCommand.java +++ b/src/de/steamwar/bungeecore/commands/TeamCommand.java @@ -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)) diff --git a/src/de/steamwar/bungeecore/commands/TeamchatCommand.java b/src/de/steamwar/bungeecore/commands/TeamchatCommand.java index 8d5e3e31..f96a793f 100644 --- a/src/de/steamwar/bungeecore/commands/TeamchatCommand.java +++ b/src/de/steamwar/bungeecore/commands/TeamchatCommand.java @@ -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();