diff --git a/src/de/steamwar/bungeecore/commands/DevCommand.java b/src/de/steamwar/bungeecore/commands/DevCommand.java index 56a6bbf..4f06408 100644 --- a/src/de/steamwar/bungeecore/commands/DevCommand.java +++ b/src/de/steamwar/bungeecore/commands/DevCommand.java @@ -23,17 +23,14 @@ import de.steamwar.bungeecore.sql.Punishment; import de.steamwar.bungeecore.sql.SteamwarUser; import de.steamwar.command.*; import de.steamwar.messages.ChatSender; -import net.md_5.bungee.api.CommandSender; import net.md_5.bungee.api.ProxyServer; import net.md_5.bungee.api.config.ServerInfo; import net.md_5.bungee.api.connection.ProxiedPlayer; import java.io.File; import java.net.InetSocketAddress; -import java.util.Collections; import java.util.HashMap; import java.util.Map; -import java.util.stream.Collectors; public class DevCommand extends SWCommand { @@ -78,7 +75,7 @@ public class DevCommand extends SWCommand { player.connect(info); } - @ClassGuard(value = GuardChecker.class, local = true) + @ClassGuard(value = ProxiedPlayer.class, local = true) public GuardChecker punishmentGuardChecker() { return (commandSender, guardCheckType, previousArguments, s) -> { ChatSender sender = ChatSender.of(commandSender);