mirror of
https://github.com/EarthMC/QuickShop-Reremake.git
synced 2026-11-24 17:39:52 -05:00
fix exception
Former-commit-id: adb609e5ac01fadb97f759c2b97b46fdf0c85d88 [formerly 7e4d70f7b86c409ff375f9366f966a2d302bbae2] Former-commit-id: 5dfcc9b819de282157b17068fc21a2c1128c243d
This commit is contained in:
1 parent
68d58cd0f6
commit
c75f36ce0c
1 file changed
+5
-2
@@ -118,8 +118,11 @@ public class CommandManager implements TabCompleter, CommandExecutor {
|
||||
((Player) sender).playSound(player.getLocation(), Sound.ENTITY_EXPERIENCE_ORB_PICKUP, 80.0F, 1.0F);
|
||||
}
|
||||
}
|
||||
|
||||
String[] temp = new String[cmdArg.length - 1];
|
||||
String[] temp;
|
||||
if (cmdArg.length != 0)
|
||||
temp = new String[cmdArg.length - 1];
|
||||
else
|
||||
temp = new String[0];
|
||||
System.arraycopy(cmdArg, 1, temp, 0, temp.length);
|
||||
if (cmdArg.length == 0)
|
||||
return rootContainer.getExecutor().onCommand(sender, commandLabel, temp);
|
||||
|
||||
Reference in new issue
Block a user