Should fix spigot commands from console

This commit is contained in:
ajgeiss0702
2021-05-05 15:25:53 +00:00
parent 8b776863a0
commit b44dd19168
@@ -16,9 +16,9 @@ public class Commands implements CommandExecutor {
@Override
public boolean onCommand(CommandSender sender, Command command, String label, String[] args) {
if(!(sender instanceof Player)) return true;
Player player = (Player) sender;
if(command.getName().equals("leavequeue")) {
if(!(sender instanceof Player)) return true;
StringBuilder arg = new StringBuilder();
for(String a : args) {
arg.append(" ");