mirror of
https://github.com/EngineHub/WorldGuard.git
synced 2024-09-16 09:06:53 +02:00
Wrong this.
This commit is contained in:
parent
78f5827d3d
commit
ebd2755eb2
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user