mirror of
https://github.com/DiscordSRV/Ascension.git
synced 2025-01-14 20:21:21 +01:00
Fix other permission in CommandUtil
This commit is contained in:
parent
1ebb5c24e0
commit
df547292c7
@ -106,7 +106,7 @@ public final class CommandUtil {
|
||||
if (execution instanceof GameCommandExecution) {
|
||||
ICommandSender sender = ((GameCommandExecution) execution).getSender();
|
||||
if (target != null) {
|
||||
if (otherPermission != null && !sender.hasPermission(Permission.COMMAND_LINKED_OTHER)) {
|
||||
if (otherPermission != null && !sender.hasPermission(otherPermission)) {
|
||||
sender.sendMessage(discordSRV.messagesConfig(sender).noPermission.asComponent());
|
||||
return CompletableFuture.completedFuture(TargetLookupResult.INVALID);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user