Essentials: Cooldown commands

Created on 19 Aug 2019  路  3Comments  路  Source: EssentialsX/Essentials

If you make a cooldown on command and you only put the command (without use, ex /helpop (without message)) the cooldown is activated.

Server version: 1.8.8-R0.1-SNAPSHOT
Plugin version: 2.17.1.0 (EssentialsX, EssentialsXChat and EssentialsXSpawn)

Sorry for my bad explanation, i'm no speak english.

question

All 3 comments

You can use a regular expression like the one below to only enforce a cooldown if players provide arguments:

command-cooldowns:
  '^^helpop .*': 30

You can read more on the Command Cooldowns wiki page.

And how i can check if player use commands like /repair hand? Some times i use this command without item in hand and the cooldown is activated

You can't currently apply cooldowns to successful commands due to the way they work - the cooldowns doesn't know whether the command was successful or not because it's not specific to EssentialsX.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Zhythero picture Zhythero  路  3Comments

drtshock picture drtshock  路  3Comments

fieu picture fieu  路  3Comments

kakd picture kakd  路  3Comments

Sikatsu picture Sikatsu  路  3Comments