Skip to content

Commit

Permalink
fix: cooldown
Browse files Browse the repository at this point in the history
  • Loading branch information
LupusVirtute committed Nov 9, 2022
1 parent 87a5697 commit 748dc7a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>org.lupus</groupId>
<artifactId>LCommandFramework</artifactId>
<version>0.7.18</version>
<version>0.7.19</version>

<name>LCommandFramework</name>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ class CooldownCondition(
) : ConditionFun() {
override fun run(sender: CommandSender, commandLupi: CommandLupi, args: Array<Any>): 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)
Expand Down

0 comments on commit 748dc7a

Please sign in to comment.