Uploaded image for project: 'Spigot'
  1. Spigot
  2. SPIGOT-1503

TabCompleter little problem

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: Minor Minor
    • None
    • None

      Example of bug:

      private List<String> cmdparam = Arrays.asList("slist","sadd","sdel");
      	@Override
      	public List<String> onTabComplete(CommandSender sender, Command cmd, String label, String[] args) {
      		if (args[0].equalsIgnoreCase("")) {
      			return cmdparam;
      		}
      }
      

      return only the first character in this example i write /ri and hitting TAB and that return ri s
      see picture below

            Unassigned Unassigned
            Flashlight34 FlashLight34
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: