TabCompleter little problem

XMLWordPrintable

    • Type: Bug
    • Resolution: Won't Fix
    • Priority: Minor
    • None
    • Affects Version/s: 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

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

              Created:
              Updated:
              Resolved: