From 4b8950b369125cca64b3d5a288316dc729722a95 Mon Sep 17 00:00:00 2001 From: yoyosource Date: Sun, 26 Jun 2022 17:45:23 +0200 Subject: [PATCH] Fix DevCommand --- src/de/steamwar/bungeecore/commands/DevCommand.java | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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);