Fix wrong context lookup for bukkit specific commands
This commit is contained in:
parent
9a943070a9
commit
168b7e23d7
1 changed files with 2 additions and 2 deletions
|
|
@ -84,7 +84,7 @@ public class BukkitCommandServerUtils extends CommandServerUtils<BukkitPlugin, P
|
|||
|
||||
private void handleEnablePlugin(CommandContext<BukkitCommandSender> context) {
|
||||
BukkitCommandSender sender = context.getSender();
|
||||
String pluginName = context.get("pluginName");
|
||||
String pluginName = context.get("plugin");
|
||||
|
||||
Result result = plugin.getPluginManager().enablePlugin(pluginName);
|
||||
result.sendTo(sender, "enabl", pluginName);
|
||||
|
|
@ -92,7 +92,7 @@ public class BukkitCommandServerUtils extends CommandServerUtils<BukkitPlugin, P
|
|||
|
||||
private void handleDisablePlugin(CommandContext<BukkitCommandSender> context) {
|
||||
BukkitCommandSender sender = context.getSender();
|
||||
String pluginName = context.get("pluginName");
|
||||
String pluginName = context.get("plugin");
|
||||
|
||||
Result result = plugin.getPluginManager().disablePlugin(pluginName);
|
||||
result.sendTo(sender, "disabl", pluginName);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue