Wrong this.

This commit is contained in:
zml2008 2011-11-30 19:24:53 -08:00
parent 78f5827d3d
commit ebd2755eb2

View File

@ -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;