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() { commands.setInjector(new Injector() {
public Object getInstance(Class<?> cls) throws InvocationTargetException, IllegalAccessException, InstantiationException { public Object getInstance(Class<?> cls) throws InvocationTargetException, IllegalAccessException, InstantiationException {
try { try {
return cls.getConstructor(WorldGuardPlugin.class).newInstance(this); return cls.getConstructor(WorldGuardPlugin.class).newInstance(plugin);
} catch (NoSuchMethodException e) { } catch (NoSuchMethodException e) {
e.printStackTrace(); e.printStackTrace();
return null; return null;