How do I block "/ + tab"?

Discussion in 'BungeeCord Plugin Development' started by alex3025, Feb 14, 2020.

  1. How I block the tab completion with BungeeCord?
     
  2. You can't disable tab completion with bungeecord. It's only possible on spigot server.
    Code (Text):
    commands:
      tab-complete: -1
    Set tab-complete to -1 to disable.
     
  3. So there isn't any method that can I implement in my code to do this?
     
  4. also if you just want certain commands to be blocked, use the PlayerCommandSendEvent

    Example:

    Code (Text):
        @EventHandler
        public void onPlayerTab(PlayerCommandSendEvent e) {
            List<String> blockedCommands = new ArrayList<>();
            blockedCommands.add("gamemode");
            blockedCommands.add("pl");
            blockedCommands.add("plugins");
            e.getCommands().removeAll(blockedCommands);
        }
     
  5. Can I use that on BungeeCord?
     
  6. No. PlayerCommandSendEvent was a bukkit event back then in 1.8
     
    • Like Like x 1