Revxrsal / Lamp

A powerful, extendable, flexible yet simple to use commands annotation framework.
MIT License
171 stars 33 forks source link

"pluginname:command" is considered invalid #52

Closed raffel080108 closed 9 months ago

raffel080108 commented 1 year ago

Let's say, for example, I register the command "test" in my plugin "testplugin". I can now use the command "/test" and everything works fine. However, if I try to type "/testplugin:test", it even shows up in auto-completion, but when executed it states "Invalid command: testplugin:test" (Just in plain text, not as brigadier error or something like that).

So the command seems to get registered correctly even in the mentioned form, but it is still considered invalid in some way

An example from a current project of mine: image image image (Just "/checktarget" works fine in this case)

raffel080108 commented 1 year ago

I have also noticed, that the auto-completion for the mentioned form of a command is displayed to a player even if they do not have the specified command permission, in oppose to the normal format, which is completely hidden in that case

Revxrsal commented 1 year ago

That's indeed a bug. I'll look into it when I get a chance. Thanks for the notice.

Revxrsal commented 9 months ago

Seems to be fixed in https://github.com/Revxrsal/Lamp/commit/c54fcfbcb9139fcccb8f5bb3f0e3f49bcaf66901. Thanks for the report!