Should fix spigot commands from console
This commit is contained in:
@@ -16,9 +16,9 @@ public class Commands implements CommandExecutor {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean onCommand(CommandSender sender, Command command, String label, String[] args) {
|
public boolean onCommand(CommandSender sender, Command command, String label, String[] args) {
|
||||||
if(!(sender instanceof Player)) return true;
|
|
||||||
Player player = (Player) sender;
|
Player player = (Player) sender;
|
||||||
if(command.getName().equals("leavequeue")) {
|
if(command.getName().equals("leavequeue")) {
|
||||||
|
if(!(sender instanceof Player)) return true;
|
||||||
StringBuilder arg = new StringBuilder();
|
StringBuilder arg = new StringBuilder();
|
||||||
for(String a : args) {
|
for(String a : args) {
|
||||||
arg.append(" ");
|
arg.append(" ");
|
||||||
|
|||||||
Reference in New Issue
Block a user