Fix bug with checking perms
This commit is contained in:
1 parent
c7fbf80420
commit
bb68292af0
2 files changed
+2
-2
No files matched your search
+1
-1
@@ -6,7 +6,7 @@ plugins {
|
|||||||
}
|
}
|
||||||
|
|
||||||
group = "tech.carcadex"
|
group = "tech.carcadex"
|
||||||
version = "1.0.0"
|
version = "1.0.0.1"
|
||||||
|
|
||||||
repositories {
|
repositories {
|
||||||
mavenCentral()
|
mavenCentral()
|
||||||
|
|||||||
@@ -35,7 +35,7 @@ interface Command {
|
|||||||
|
|
||||||
|
|
||||||
fun hasNotPermission(sender: CommandSender): Boolean =
|
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)
|
if(it) MessagesService.byTag("#no-perm")(sender)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user