diff --git a/pom.xml b/pom.xml index bd5a9ac..5477721 100644 --- a/pom.xml +++ b/pom.xml @@ -6,7 +6,7 @@ org.lupus LCommandFramework - 0.7.18 + 0.7.19 LCommandFramework diff --git a/src/main/java/org/lupus/commands/core/conditions/CooldownCondition.kt b/src/main/java/org/lupus/commands/core/conditions/CooldownCondition.kt index 1613ce9..5e60a87 100644 --- a/src/main/java/org/lupus/commands/core/conditions/CooldownCondition.kt +++ b/src/main/java/org/lupus/commands/core/conditions/CooldownCondition.kt @@ -16,10 +16,10 @@ class CooldownCondition( ) : ConditionFun() { override fun run(sender: CommandSender, commandLupi: CommandLupi, args: Array): Boolean { if (sender !is Player) - return true + return false if (sender.hasPermission("cooldown.ignore")) - return false + return true val namespace = commandLupi.getNameSpace() val hasCooldown = !CooldownManager.playerHasCooldown(sender, namespace)