[SPIGOT-3748] Disabled plugin's commands dont't react Created: 08/Jan/18 Updated: 08/Jan/18 Resolved: 08/Jan/18 |
|
Status: | Resolved |
Project: | Spigot |
Component/s: | None |
Affects Version/s: | None |
Fix Version/s: | None |
Type: | Bug | Priority: | Minor |
Reporter: | Selebrator | Assignee: | Unassigned |
Resolution: | Fixed | Votes: | 0 |
Labels: | Bukkit, NoOutput, commands, diasbled, disable, plugin |
Attachments: |
![]() |
Description |
When a plugin that has commands get's disabled it's commands stay, but dont do anything. I made a plugin for testing: DisabledCommandExecutor.jar import org.bukkit.Bukkit; import org.bukkit.command.*; import org.bukkit.plugin.java.JavaPlugin; public class DisabledCommandExecutorPlugin extends JavaPlugin implements CommandExecutor { @Override public void onEnable() { this.getCommand("killme").setExecutor(this); } @Override public boolean onCommand(CommandSender sender, Command command, String label, String[] args) { sender.sendMessage("Working :)"); Bukkit.getPluginManager().disablePlugin(this); return true; } } plugin.yml name: DisabledCommandExecutor version: 1.0.0 main: DisabledCommandExecutorPlugin commands: killme: Executing /doanything results (as expected) in Unknown command. Type "/help" for help. Executing /killme gives (as expected) Working :) [DisabledCommandExecutor] Disabling DisabledCommandExecutor v1.0.0 But executing /killme a second time gives no output at all. This is frustrating for the user because they may not notice that a plugin was disabled and then don't get any feedback why their commands are not working. |