dont check permission if permission is null
This commit is contained in:
+1
@@ -18,6 +18,7 @@ public class BungeeSender implements ICommandSender {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean hasPermission(String permission) {
|
public boolean hasPermission(String permission) {
|
||||||
|
if(permission == null) return true;
|
||||||
return handle.hasPermission(permission);
|
return handle.hasPermission(permission);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+1
@@ -17,6 +17,7 @@ public class VelocitySender implements ICommandSender {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean hasPermission(String permission) {
|
public boolean hasPermission(String permission) {
|
||||||
|
if(permission == null) return true;
|
||||||
return handle.hasPermission(permission);
|
return handle.hasPermission(permission);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user