Fixed no permission message on player join (on velocity
This commit is contained in:
+3
-1
@@ -34,6 +34,8 @@ public class VelocityCommand implements RawCommand {
|
||||
|
||||
@Override
|
||||
public boolean hasPermission(final Invocation invocation) {
|
||||
return command.checkPermission(new VelocitySender(invocation.source()));
|
||||
String permission = command.getPermission();
|
||||
if(permission == null) return true;
|
||||
return invocation.source().hasPermission(permission);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user