Skip to content

Cooldown

tom2208 edited this page Aug 22, 2020 · 1 revision

Description

The cooldown allows you to define a time in milliseconds, which must expire before being able to sort an inventory again.

The cooldown can only be set on a server level, not for each player individually. However there is the chestcleaner.cooldown.immune permission, which allows a player to ignore the cooldown and sort anyway. The cooldown can also be disabled altogether.

Commands

  • /sortingadmin cooldown
    • get the currently configured cooldown time for ther server.
  • /sortingadmin cooldown <timeInMilliseconds>
    • Sets the cooldown time for the server. It will affect every player who hasn't got the chestcleaner.cooldown.immune permission.
  • /sortingadmin cooldown active
    • get if the cooldown is currently active for the server.
  • /sortingadmin cooldown active <true/false>
    • activates or deactivates to cooldown for the server. It will affect every player who hasn't got the chestcleaner.cooldown.immune permission.

Permissions

Only Server OPs have this permission by default.

  • chestcleaner.cooldown.immune
    • allow player to ignore the cooldown if it is active and sort anyway
  • chestcleaner.cmd.admin.cooldown
    • allow player to change the cooldown time and toggle

Config

  • the cooldown toggle and time are saved/configured in config.yml
cooldown:
  active: true
  time: 5000