add debug

This commit is contained in:
Telesphoreo 2022-04-08 18:56:45 -05:00
parent 271b8a1df4
commit 79b687c80d

View File

@ -7,6 +7,7 @@ import dev.plex.cmdblocker.MatchCommand;
import dev.plex.cmdblocker.RegexCommand; import dev.plex.cmdblocker.RegexCommand;
import dev.plex.listener.PlexListener; import dev.plex.listener.PlexListener;
import dev.plex.player.PlexPlayer; import dev.plex.player.PlexPlayer;
import dev.plex.util.PlexLog;
import dev.plex.util.PlexUtils; import dev.plex.util.PlexUtils;
import net.kyori.adventure.text.minimessage.MiniMessage; import net.kyori.adventure.text.minimessage.MiniMessage;
import org.bukkit.Bukkit; import org.bukkit.Bukkit;
@ -43,6 +44,7 @@ public class CommandListener extends PlexListener
PlexPlayer plexPlayer = DataUtils.getPlayer(player.getUniqueId()); PlexPlayer plexPlayer = DataUtils.getPlayer(player.getUniqueId());
if (plexPlayer.getRankFromString().isAtLeast(blockedCommand.getRank())) if (plexPlayer.getRankFromString().isAtLeast(blockedCommand.getRank()))
{ {
PlexLog.debug("we got here, continuing");
continue; continue;
} }
@ -51,6 +53,7 @@ public class CommandListener extends PlexListener
{ {
if (regexCommand.getRegex().matcher(message).lookingAt()) if (regexCommand.getRegex().matcher(message).lookingAt())
{ {
PlexLog.debug("command blocked");
isBlocked = true; isBlocked = true;
} }
} }
@ -58,6 +61,7 @@ public class CommandListener extends PlexListener
{ {
if (message.toLowerCase().startsWith(matchCommand.getMatch().toLowerCase())) if (message.toLowerCase().startsWith(matchCommand.getMatch().toLowerCase()))
{ {
PlexLog.debug("command blocked");
isBlocked = true; isBlocked = true;
} }
} }