From f416e30d45504622daefd2b9a4fddacfd268ddc9 Mon Sep 17 00:00:00 2001 From: Marc Baloup Date: Wed, 10 Jul 2024 14:04:05 +0200 Subject: [PATCH] Better log info with commands --- .../paper/commands/PaperBrigadierCommand.java | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/pandalib-paper/src/main/java/fr/pandacube/lib/paper/commands/PaperBrigadierCommand.java b/pandalib-paper/src/main/java/fr/pandacube/lib/paper/commands/PaperBrigadierCommand.java index b99198a..f785b9d 100644 --- a/pandalib-paper/src/main/java/fr/pandacube/lib/paper/commands/PaperBrigadierCommand.java +++ b/pandalib-paper/src/main/java/fr/pandacube/lib/paper/commands/PaperBrigadierCommand.java @@ -167,8 +167,10 @@ public abstract class PaperBrigadierCommand extends BrigadierCommand c.getName().equals(commandNode.getName())); @@ -208,26 +213,26 @@ public abstract class PaperBrigadierCommand extends BrigadierCommand command) { if (PluginCommandNode.REFLECT.get().isInstance(command)) { PluginCommandNode wrappedPCN = wrap(command, PluginCommandNode.class); - return "Brigadier plugin command: /" + command.getName() + " from plugin " + wrappedPCN.getPlugin().getName(); + return "Brigadier plugin command /" + command.getName() + " from plugin " + wrappedPCN.getPlugin().getName(); } else if (BukkitCommandNode.REFLECT.get().isInstance(command)) { BukkitCommandNode wrappedBCN = wrap(command, BukkitCommandNode.class); return getCommandIdentity(wrappedBCN.getBukkitCommand()); } else { - return "Vanilla command: /" + command.getName(); + return "Vanilla command /" + command.getName(); } }