1.1.2 | Bugfix

TabComplete Aller Commands was affected by T2C alias and partially disabled completely. This has been fixed.
This commit is contained in:
2022-07-19 22:55:25 +02:00
parent 6586ac4ee9
commit dbe5f82030
5 changed files with 5 additions and 8 deletions

View File

@@ -6,7 +6,6 @@ import net.t2code.lib.Spigot.Lib.commands.Tab;
import org.bukkit.event.EventHandler;
import org.bukkit.event.Listener;
import org.bukkit.event.server.TabCompleteEvent;
import org.bukkit.plugin.Plugin;
import java.util.*;
@@ -17,11 +16,10 @@ public class TabEvent implements Listener {
public void onTab(TabCompleteEvent e) {
String buffer = e.getBuffer();
String[] imp = buffer.replace("/", "").split(" ");
List<String> list = new ArrayList<>(Collections.emptyList());
if (!Main.allAliases.contains(imp[0]) || !Main.allForSubAliases.contains(imp[0])){
e.setCompletions(list);
return;
}
List<String> list = new ArrayList<>(Collections.emptyList());
arg1.clear();
for (String sals : Main.allSubAliases) {