Fix some velocity related issues

This commit is contained in:
Alexander Söderberg 2020-09-20 17:09:48 +02:00
parent 1c831a3bcf
commit 0ccf8d37e6
No known key found for this signature in database
GPG key ID: C0207FF7EA146678
6 changed files with 14 additions and 12 deletions

View file

@ -64,6 +64,9 @@ public class BungeeCommandManager<C> extends CommandManager<C> {
@Override
public final boolean hasPermission(@Nonnull final C sender,
@Nonnull final String permission) {
if (permission.isEmpty()) {
return true;
}
return this.backwardsCommandSenderMapper.apply(sender).hasPermission(permission);
}