-
-
Notifications
You must be signed in to change notification settings - Fork 368
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tab Completions #1548
Comments
I have no idea how Skript exactly registers commands, but FYI this method works (as per, this issue doesn't occur) on 1.13: Bukkit.getServer().getCommandMap().register(pluginName, org.bukkit.command.Command) with pluginName being the Edit: enhancement since this doesn't really break anything, but medium priority since this sounds extremely misleading for the players |
Okay I wanted to add some more findings to this. I have a few scripts loaded on this test server, if in-game I do the command /skript and hit tab, the only things that show up are /skript:sk and /skript:skript Now if I do the same in console, it shows ALL of my available scripts commands Now as I mentioned to Pikachu after doing some further studying, I found out that when a player logs into a server, all available commands based on said players permissions are sent to the client. This may not seem like a big deal to some people, but for me it is, as the players on my server will not be able to quickly/easily see the available commands I have made for them. Thanks for reading! |
Interestingly enough Skript already uses the method I sent already 👀
No idea why it doesn't work for Skript Could you please try on Paper 1.13.1? I'm sure this worked for me on Paper 1.13.1... https://destroystokyo.com/ci/job/Paper-1.13/lastSuccessfulBuild/ Weird, anyway |
Hey |
It appears that tab completions are based on plugin.yml and sent to client when it connects to server. Script command completions may or may not be possible to implement using current Spigot APIs. |
Interestingly I don't have the commands in the plugin.yml of my plugin at all either.. hmm.. |
same issue here. idk if ild classify this as medium priority, its awful to use any custom skript command like this. especially in comparison to every other plugin on 1.13. It wont even suggest online players by default which makes it kinda unusable for players |
I'm open to more opinions but I disagree. This certainly isn't insanely high priority when there's bugs that exist which are nearly plugin-breaking (such as the lack of support for new WG). Medium is higher than most things get and saying it's "awful" or "unusable" is a huge stretch when it's a simple loss of convenience. The commands still work fine. |
idk i have alot of commands handled via skript and its painful. you have to spell out the name on every command if its a larger server because otherwise you risk targeting the wrong player. and now add nicknames to the mix. That sucks compared to 1.13s current tabcomplete system which is kinda good imo and i actually had to go back to other plugins because my players rioted. |
I'm not inclined to put something that is simply an inconvenience which doesn't actually break anything as a high or critical priority. I get that it's annoying but we're still in alpha and "unusable" is very dramatic. There are other issues which cause actual problems of much higher relevance than "it takes longer to write commands". I'd like to see others (preferably a dev) disagree with me before I change the priority, but medium is already higher than we put almost anything that's a pure inconvenience. Obviously we'd love to support the new command library but there is simply much more important stuff to do. |
I have to agree with @TheBentoBox here. Medium priority seems like a good fit. As for @melinstagibson ... version 2.3 Alpha's 1-4 are simply meant for finding bugs. Back to you Bento and the rest of the dev team. I just started learning Java and I have to admit its a HUGE pain in the rear dealing with tab completions. I would assume there probably isn't a "simple" way to add tab completions into Skript. As for the completions themselves that I believe has never been handled by Skript. |
If you, for example, implemented a chat system with Skript, this would indeed be quite serious issue. Too bad that I still have no idea how to get tab completions for dynamically registered commands. Actually, I'm not sure if it is feasible - that is, possible without diving deep into NMS/Brigadier code. |
Skript 2.3Alpha 3
Spigot 1.13.1
Im not sure if this is a Skript issue or a Spigot issue. But I noticed on 1.12.2 when you create a command, its recognized in the command list for completions.... IE:
If I create a command /blarg.... when I type /bl and hit tab, blarg shows up as one of the options.
In Skript 2.3 for 1.13, this does not seem to work.
If I fully type out the command /blarg it stays red, whereas commands like /skript will show up correctly in the completions.
IMAGES:
This image shows the completion working in 1.12.2
This image shows /blarg showing up as red and not showing completions when starting to type /bl
This image shows /skript showing up properly in the completions
The text was updated successfully, but these errors were encountered: