mirror of
https://github.com/EngineHub/WorldGuard.git
synced 2024-11-03 01:19:42 +01: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() {
|
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;
|
||||||
|
Loading…
Reference in New Issue
Block a user