Slimefun

Slimefun

3M Downloads

tab complete not working properly with sf give command

mrcoffee1026 opened this issue · 1 comments

commented

Description (Required)

Typing "/sf give playername " will provide a list of suggestions containing every slimefun item. Adding any letter to that string drops the number of suggestions to none so that you have to type the entire name of the item.

Steps to reproduce the Issue (Required)

  1. Try "/sf give anyplayername " -- (you need a space after the player name to view suggestions).
  2. Try "/sf give anyplayername a", for example (should now see a list of every slimefun item beginning with "a" but... the list will be gone now.

Expected behavior (Required)

suggestions should remain available until a selection is made or a spelling of an item is keyed in that does not exist.

Server Log / Error Report

No log activity

Environment (Required)

[16:41:47 INFO]: Paper v1_15_R1 (146)
[16:41:47 INFO]:
[16:41:47 INFO]: CS-CoreLib vDEV - 83 (git 8081bb4f)
[16:41:47 INFO]: Slimefun vDEV - 475 (git 8368553)
[16:41:47 INFO]:
[16:41:47 INFO]: Installed Addons (14)
[16:41:47 INFO]: DyedBackpacks vDEV - 5 (git 129670c7)
[16:41:47 INFO]: SoundMuffler vDEV - 8 (git b700523d)
[16:41:47 INFO]: SlimefunOreChunks vDEV - 8 (git 41e31ffc)
[16:41:47 INFO]: HotbarPets vDEV - 26 (git 7489ae00)
[16:41:47 INFO]: ExtraGear vDEV - 7 (git 9e953653)
[16:41:47 INFO]: ExoticGarden vDEV - 38 (git a6eabd5a)
[16:41:47 INFO]: Barrels vDEV - 11 (git abecba9c)
[16:41:47 INFO]: ElectricSpawners vDEV - 10 (git 6c891f7f)
[16:41:47 INFO]: ExtraHeads vDEV - 13 (git 88072fdf)
[16:41:47 INFO]: SoulJars vDEV - 12 (git 6b475952)
[16:41:47 INFO]: MobCapturer vDEV - 7 (git b61d3fbf)
[16:41:47 INFO]: SlimyTreeTaps vDEV - 10 (git 66d1dd72)
[16:41:47 INFO]: PrivateStorage vDEV - 11 (git b064863b)
[16:41:47 INFO]: ChestTerminal vDEV - 30 (git 04393688)

commented

Problem is in SlimefunTabCompleter.java, I suspect something fishy is up with this line:
else if (item.equals(input)) { return Collections.emptyList(); }
I’ll look into it and PR a fix if I find one.