From bb68292af0b17582725b84ddca77aef331c0e7a0 Mon Sep 17 00:00:00 2001 From: itzRedTea Date: Mon, 25 Mar 2024 22:03:58 +0300 Subject: [PATCH] Fix bug with checking perms --- build.gradle.kts | 2 +- .../tech/carcadex/kotlinbukkitkit/commands/dsl/Command.kt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index 228862e..d6e1635 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -6,7 +6,7 @@ plugins { } group = "tech.carcadex" -version = "1.0.0" +version = "1.0.0.1" repositories { mavenCentral() diff --git a/commands/src/main/kotlin/tech/carcadex/kotlinbukkitkit/commands/dsl/Command.kt b/commands/src/main/kotlin/tech/carcadex/kotlinbukkitkit/commands/dsl/Command.kt index 1f4b259..19aa777 100644 --- a/commands/src/main/kotlin/tech/carcadex/kotlinbukkitkit/commands/dsl/Command.kt +++ b/commands/src/main/kotlin/tech/carcadex/kotlinbukkitkit/commands/dsl/Command.kt @@ -35,7 +35,7 @@ interface Command { fun hasNotPermission(sender: CommandSender): Boolean = - context.permission != "" && !sender.hasPermission(context.permission).also { + context.permission != "" && (!sender.hasPermission(context.permission)).also { if(it) MessagesService.byTag("#no-perm")(sender) }