mirror of
https://github.com/EssentialsX/Essentials.git
synced 2025-01-05 16:08:14 +01:00
Move some tab complete messages to debug mode only (#3739)
This commit is contained in:
parent
9cda59511e
commit
80e7558fc0
@ -348,13 +348,17 @@ public abstract class EssentialsCommand implements IEssentialsCommand {
|
|||||||
}
|
}
|
||||||
|
|
||||||
final int numArgs = args.length - index - 1;
|
final int numArgs = args.length - index - 1;
|
||||||
|
if (ess.getSettings().isDebug()) {
|
||||||
ess.getLogger().info(numArgs + " " + index + " " + Arrays.toString(args));
|
ess.getLogger().info(numArgs + " " + index + " " + Arrays.toString(args));
|
||||||
|
}
|
||||||
String[] effectiveArgs = new String[numArgs];
|
String[] effectiveArgs = new String[numArgs];
|
||||||
System.arraycopy(args, index, effectiveArgs, 0, numArgs);
|
System.arraycopy(args, index, effectiveArgs, 0, numArgs);
|
||||||
if (effectiveArgs.length == 0) {
|
if (effectiveArgs.length == 0) {
|
||||||
effectiveArgs = new String[] {""};
|
effectiveArgs = new String[] {""};
|
||||||
}
|
}
|
||||||
|
if (ess.getSettings().isDebug()) {
|
||||||
ess.getLogger().info(command + " -- " + Arrays.toString(effectiveArgs));
|
ess.getLogger().info(command + " -- " + Arrays.toString(effectiveArgs));
|
||||||
|
}
|
||||||
|
|
||||||
return command.tabComplete(sender.getSender(), label, effectiveArgs);
|
return command.tabComplete(sender.getSender(), label, effectiveArgs);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user