From ebd2755eb262253475aa863ee8cc42f01880bc74 Mon Sep 17 00:00:00 2001 From: zml2008 Date: Wed, 30 Nov 2011 19:24:53 -0800 Subject: [PATCH] Wrong this. --- src/main/java/com/sk89q/worldguard/bukkit/WorldGuardPlugin.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/sk89q/worldguard/bukkit/WorldGuardPlugin.java b/src/main/java/com/sk89q/worldguard/bukkit/WorldGuardPlugin.java index 2dffa3a4..fc3496fb 100644 --- a/src/main/java/com/sk89q/worldguard/bukkit/WorldGuardPlugin.java +++ b/src/main/java/com/sk89q/worldguard/bukkit/WorldGuardPlugin.java @@ -121,7 +121,7 @@ public boolean hasPermission(CommandSender player, String perm) { commands.setInjector(new Injector() { public Object getInstance(Class cls) throws InvocationTargetException, IllegalAccessException, InstantiationException { try { - return cls.getConstructor(WorldGuardPlugin.class).newInstance(this); + return cls.getConstructor(WorldGuardPlugin.class).newInstance(plugin); } catch (NoSuchMethodException e) { e.printStackTrace(); return null;