mirror of
https://github.com/DiscordSRV/Ascension.git
synced 2024-12-27 17:28:23 +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) {
|
if (execution instanceof GameCommandExecution) {
|
||||||
ICommandSender sender = ((GameCommandExecution) execution).getSender();
|
ICommandSender sender = ((GameCommandExecution) execution).getSender();
|
||||||
if (target != null) {
|
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());
|
sender.sendMessage(discordSRV.messagesConfig(sender).noPermission.asComponent());
|
||||||
return CompletableFuture.completedFuture(TargetLookupResult.INVALID);
|
return CompletableFuture.completedFuture(TargetLookupResult.INVALID);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user