From c97233b68b560d470d21ef94f37f2f105af06744 Mon Sep 17 00:00:00 2001 From: yoyosource Date: Thu, 16 Jun 2022 22:14:40 +0200 Subject: [PATCH] Hotfix SWCommand --- src/de/steamwar/command/SWCommand.java | 22 ++++++++++------------ 1 file changed, 10 insertions(+), 12 deletions(-) diff --git a/src/de/steamwar/command/SWCommand.java b/src/de/steamwar/command/SWCommand.java index 4dbdd676..94b7c24e 100644 --- a/src/de/steamwar/command/SWCommand.java +++ b/src/de/steamwar/command/SWCommand.java @@ -63,19 +63,17 @@ public class SWCommand extends AbstractSWCommand { @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 onTabComplete(CommandSender commandSender, String[] strings) { - return SWCommand.this.tabComplete(commandSender, null, strings); - } - }; - }, 100, TimeUnit.MILLISECONDS); + @Override + public Iterable onTabComplete(CommandSender commandSender, String[] strings) { + return SWCommand.this.tabComplete(commandSender, null, strings); + } + }; } private abstract static class TabCompletableCommand extends Command implements TabExecutor {