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