[SPIGOT-4648] If you load a plugin in later, tab completion does not work Created: 04/Mar/19  Updated: 05/Mar/19

Status: Open
Project: Spigot
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Minor
Reporter: ZockerAxel Assignee: Unassigned
Resolution: Unresolved Votes: 1
Labels: commands, tab-completion
Environment:

All


Attachments: File Bug.jar     File Bug2.jar    
Version: CraftBukkit version git-Spigot-3cb9dcb-0f708cb (MC: 1.13.2) (Implementing API version 1.13.2-R0.1-SNAPSHOT)
Guidelines Read: Yes

 Description   

If you load in a Plugin after Server start, like this:

Plugin pl = Bukkit.getPluginManager().loadPlugin(new File("/path/to/your/plugin.jar"));
Bukkit.getPluginManager().enablePlugin(pl);

commands will be loaded in but Tab Completion will not be available for those Commands and it will appear as if those Commands don't exist to the player.

 
To recreate this behavior, i have attached 2 plugins. Place 'Bug.jar' normally in the plugins folder and Bug2.jar just in the Server folder, Bug2.jar will load but command tab-completion will be unavailable (even though the plugin will be listed in /pl). Now use /bug and you will see that it will output '/bug'.



 Comments   
Comment by md_5 [ 05/Mar/19 ]

:|

I'm not sure this is really a method that is meant to be used.
There's a heap of other deficiencies in it, just looking at the code for example the Bug2 plugin won't be populated in the Bukkit /help properly either.

Generated at Sat Dec 13 15:21:52 UTC 2025 using Jira 10.3.13#10030013-sha1:56dd970ae30ebfeda3a697d25be1f6388b68a422.