geforkt von SteamWar/BungeeCore
Hotfix SWCommand
Dieser Commit ist enthalten in:
Ursprung
cc839859a8
Commit
c97233b68b
@ -63,19 +63,17 @@ public class SWCommand extends AbstractSWCommand<CommandSender> {
|
||||
|
||||
@Override
|
||||
protected void createAndSafeCommand(String command, String[] aliases) {
|
||||
BungeeCord.getInstance().getScheduler().schedule(BungeeCore.get(), () -> {
|
||||
this.command = new TabCompletableCommand(command, permission, aliases) {
|
||||
@Override
|
||||
public void execute(CommandSender commandSender, String[] strings) {
|
||||
SWCommand.this.execute(commandSender, null, strings);
|
||||
}
|
||||
this.command = new TabCompletableCommand(command, permission, aliases) {
|
||||
@Override
|
||||
public void execute(CommandSender commandSender, String[] strings) {
|
||||
SWCommand.this.execute(commandSender, null, strings);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Iterable<String> onTabComplete(CommandSender commandSender, String[] strings) {
|
||||
return SWCommand.this.tabComplete(commandSender, null, strings);
|
||||
}
|
||||
};
|
||||
}, 100, TimeUnit.MILLISECONDS);
|
||||
@Override
|
||||
public Iterable<String> onTabComplete(CommandSender commandSender, String[] strings) {
|
||||
return SWCommand.this.tabComplete(commandSender, null, strings);
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
private abstract static class TabCompletableCommand extends Command implements TabExecutor {
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren