From e16487431d7e29b7a3e8d35db6d491d3d3082af8 Mon Sep 17 00:00:00 2001 From: Marc Baloup Date: Wed, 10 Jul 2024 23:15:33 +0200 Subject: [PATCH] Removed some debug messages --- .../lib/paper/commands/PaperBrigadierCommand.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 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 b24e517..9d1d78e 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 @@ -98,9 +98,9 @@ public abstract class PaperBrigadierCommand extends BrigadierCommand c.getName().equals(name)); vanillaPaperDispatcher.getRoot().addChild(getAliasNode(targetCommand, name)); } - else if (isPluginCommand == null) { + /*else if (isPluginCommand == null) { Log.info(getCommandIdentity(eventuallyBadCommandToReplace) + " found in the dispatcher. Unsure if we restore the vanilla command."); - } + }*/ }); } @@ -191,7 +191,7 @@ public abstract class PaperBrigadierCommand extends BrigadierCommand actualNode = vanillaPaperDispatcher.getRoot().getChild(aliasToForce); if (actualNode != null) { - Log.info("Forcing registration of alias /" + aliasToForce + " for command /" + commandNode.getName() + ": replacing " + getCommandIdentity(actualNode) + "?"); + //Log.info("Forcing registration of alias /" + aliasToForce + " for command /" + commandNode.getName() + ": replacing " + getCommandIdentity(actualNode) + "?"); if (PluginCommandNode.REFLECT.get().isInstance(actualNode)) { PluginCommandNode pcn = wrap(actualNode, PluginCommandNode.class); if (pcn.getPlugin().equals(plugin)) @@ -204,9 +204,9 @@ public abstract class PaperBrigadierCommand extends BrigadierCommand c.getName().equals(aliasToForce)); } - else { + /*else { Log.info("Forcing registration of alias /" + aliasToForce + " for command /" + commandNode.getName() + ": no command found for alias. Adding alias."); - } + }*/ LiteralCommandNode newPCN = unwrap(new PluginCommandNode(aliasToForce, plugin.getPluginMeta(), commandNode, description)); vanillaPaperDispatcher.getRoot().addChild(newPCN); }