From 168b7e23d7717e9b20019da22ca83ef4014da5ca Mon Sep 17 00:00:00 2001 From: Frank van der Heijden Date: Sun, 25 Jul 2021 12:14:24 +0200 Subject: [PATCH] Fix wrong context lookup for bukkit specific commands --- .../serverutils/bukkit/commands/BukkitCommandServerUtils.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Bukkit/src/main/java/net/frankheijden/serverutils/bukkit/commands/BukkitCommandServerUtils.java b/Bukkit/src/main/java/net/frankheijden/serverutils/bukkit/commands/BukkitCommandServerUtils.java index bd7cd9c..11ca083 100644 --- a/Bukkit/src/main/java/net/frankheijden/serverutils/bukkit/commands/BukkitCommandServerUtils.java +++ b/Bukkit/src/main/java/net/frankheijden/serverutils/bukkit/commands/BukkitCommandServerUtils.java @@ -84,7 +84,7 @@ public class BukkitCommandServerUtils extends CommandServerUtils 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 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);