mirror of
https://github.com/EarthMC/QuickShop-Reremake.git
synced 2026-11-25 01:49:49 -05:00
fix array issue
Former-commit-id: 4d36071fcba42167cd66690071112445fd9570b8 [formerly c7d6b9e584330e8f61f8fa121bfca3ef512635e7] Former-commit-id: 5398be49fb1ce0275b06efc9f305badd2b00df63
This commit is contained in:
1 parent
c75f36ce0c
commit
f2b2e039a9
1 file changed
+4
-4
@@ -119,14 +119,14 @@ public class CommandManager implements TabCompleter, CommandExecutor {
|
||||
}
|
||||
}
|
||||
String[] temp;
|
||||
if (cmdArg.length != 0)
|
||||
if (cmdArg.length != 0) {
|
||||
temp = new String[cmdArg.length - 1];
|
||||
else
|
||||
System.arraycopy(cmdArg, 1, temp, 0, temp.length);
|
||||
} else {
|
||||
temp = new String[0];
|
||||
System.arraycopy(cmdArg, 1, temp, 0, temp.length);
|
||||
}
|
||||
if (cmdArg.length == 0)
|
||||
return rootContainer.getExecutor().onCommand(sender, commandLabel, temp);
|
||||
System.arraycopy(cmdArg, 1, temp, 0, temp.length);
|
||||
for (CommandContainer container : cmds) {
|
||||
if (container.getPrefix().equals(cmdArg[0].toLowerCase()))
|
||||
if (container.getPermission() == null || container.getPermission().isEmpty() || sender.hasPermission(container
|
||||
|
||||
Reference in new issue
Block a user