CommandsManager [1.8 - 1.21.4] | [MySQL] | [Custom Cooldowns] | [Custom Delays] | [Custom Costs] icon

CommandsManager [1.8 - 1.21.4] | [MySQL] | [Custom Cooldowns] | [Custom Delays] | [Custom Costs] -----

Blocks, Adds a Cooldown and Adds a Delay with Cost to any Command.



[​IMG]
Introduction
CommandsManager is a plugin that allows you to Block, Add a Cooldown and Add a Delay with Cost to any Command.​

Features
  • 1.8 - Newer Versions Support.
  • Fully Customizable.
  • HEX Colors Support.
  • PlaceholderAPI Integration: Allows any plugin to display commands cooldown through a placeholder and use PlaceholderAPI placeholders for Actions.
  • MySQL Support for Cooldowns.
  • Customizable Loading Bar during Delay.
  • Permissions to bypass Blocks, Cooldowns and Delays.
  • Block, add a Cooldown or Delay with a cost to any command.
  • Add a Cooldown and Delay with a cost to the same command.
  • Set Custom Cooldowns, Custom Delays and Custom Costs with permission-based settings.
  • Set Costs based on different types: "EXPERIENCE", "MONEY" or "CUSTOM:<Material>".
  • Seconds/Minutes/Hours/Days Time Format.
  • Block Colons in the first argument of the command(/bukkit:help).
  • Commands per World.
  • Custom Actions.
Requirements
  1. Spigot
  2. Vault
  3. Economy Plugin (Essentials, ec...)
  4. PlaceholderAPI (Optional)
How To Install
  1. Download CommandsManager.jar only from this page.
  2. Download Vault and an Economy Plugin (Essentials, ec...).
  3. Download PlaceholderAPI (Optional).
  4. Put CommandsManager, Vault, an Economy Plugin and PlaceholderAPI inside your plugins folder.
  5. Start your server.
Commands
/commandsmanager help - Sends a message with all commands and permissions.
/commandsmanager reload | rl - Reloads the configuration file.

Permissions
commandsmanager.* - Allows to execute all commands.
commandsmanager.help - Allows to see all commands and permissions.
commandsmanager.reload - Allows to reload the configuration file.
commandsmanager.bypass.blockColons - Allows to execute commands with colons in the first argument of the command.

Files
Code (YAML):
updateCheck : true

mySQL
:
  enabled
: false
  host
: "localhost"
  port
: 3306
  username
: "root"
  password
: "root"
  database
: "commandsmanager"

messages
:
  prefix
: "&cCommandsManager &7>>"
  general
:
    noPermission
: "%prefix% &cYou don't have that permission!"
    configReloaded
: "%prefix% &aConfig Reloaded!"
    wrongArguments
: "%prefix% &cWrong Arguments!"
  updateCheck
:
    latestVersion
: "%prefix% &aThis is the latest version(%current_version%) of the plugin."
    newVersionAvailable
:
     - "%prefix% &eThere is a new version(%new_version%) available."
      - "%prefix% &eYou can download it at: https://www.spigotmc.org/resources/commandsmanager-1-8-1-21-4-mysql-custom-cooldowns-custom-delays-custom-costs.111108/"
  command
:
    blockColons
: "%prefix% &cYou can't use colons in the first argument of the command!"
    cost
:
      noEXP
: "%prefix% &cYou don't have enough experience(&e%command_cost%&c) to execute &e%command_name%&c."
      noMoney
: "%prefix% &cYou don't have enough money(&e%command_cost%&c$) to execute &e%command_name%&c."
      noCustom
: "%prefix% &cYou don't have enough &e%command_customMaterial%&c(&e%command_cost%&c) to execute &e%command_name%&c."
  time
:
    seconds
: " seconds"
    minutes
: " minutes"
    hours
: " hours"
    days
: " days"
  placeholder
:
    cooldown
:
      activeCooldown
: "%prefix% &cYou have to wait &e%command_cooldown% &cbefore using this command!"
      inactiveCooldown
: "%prefix% &2This command is ready to be used."

loadingBar
:
  symbol
: "[]"
  completedColor
: "&a"
  notCompletedColor
: "&c"

commandsSettings
:
  #If set to "true", commands with colons in the first argument(/bukkit:plugins), will not be executed.
  blockColons
: true
  #The delay will be canceled every time an event is triggered.
  delayCommandCancel
:
    #If set to "true", the delay will be canceled every time the player tries to execute a command.
    onPlayerCommandProcessEvent
: true
    #If set to "true", the delay will be canceled every time the player tries to write in chat.
    onPlayerChatEvent
: true
    #If set to "true", the delay will be canceled every time the player moves.
    onPlayerMoveEvent
: true
    #If set to "true", the delay will be canceled every time the player interacts with any type of block.
    onPlayerInteractEvent
: true
    #If set to "true", the delay will be canceled every time the player takes/does damage to any entity.
    onDamageEvent
: true
  #
  #Each group must have a unique identifier.
  #Each group has distinct voices, based on its type.
  #To create other groups, follow the 4 examples.
  #
  commands
:
    test1
:
      #Types: "BLOCK", "COOLDOWN", "DELAY" and "COOLDOWN_DELAY".
      #BLOCK: Blocks any command.
      #COOLDOWN: Adds a Cooldown to any command.
      #DELAY: Adds a Delay with Cost to any command.
      #COOLDOWN_DELAY: Adds a Cooldown and a Delay with Cost to any command.
      type
: "BLOCK"
      #With this permission, the block will be bypassed.
      permission
: "commandsmanager.test1"
      #Only in these worlds the commands will be blocked.
      worlds
:
       - "world"
        - "world_nether"
        - "world_the_end"
      #Only these commands will be blocked.
      commands
:
       - "/help"
        - "/version"
        - "/ver"
        - "/plugins"
        - "/pl"
        - "/about"
        - "/icanhasbukkit"
      #Built In Placeholders:
      #%prefix% - Returns the prefix.
      #%player_name% - Returns the player's name.
      #%command_name% - Returns the name of the command.
      #%command_time_cooldown% - Returns the time of cooldown of the command.
      #%command_time_delay% - Returns the time of delay of the command.
      #%command_cooldown% - Returns the cooldown time.
      #%cooldown_cost% - Returns the cost.
      #
      #If PlaceholderAPI is installed, you can also use its placeholders.
      #
      #PlaceholderAPI placeholder:
      #It needs PlaceholderAPI to work and this placeholder can be used by any plugin.
      #%commandsmanager_cooldown_/<command>% - Returns the cooldown time of the command.
      #
      #Actions:
      #[SOUND] Sound;Volume;Pitch - Sends a sound to the player.
      #[MESSAGE] Message - Sends a message to the player.
      #[JSON_MESSAGE] Message - Sends a json_message to the player.
      #The JSONMessage must be written between ' '.
      #[TITLE] Title;SubTitle;FadeIn;Stay;FadeOut - Sends a title to the player.
      #[ACTIONBAR] String - Sends an actionbar to the player.
      #[COMMAND_CONSOLE] Command - Executes a command as console.
      #[COMMAND_PLAYER] Command - Executes a command as player.
      #To execute the command the "/" is not needed.
      actions
:
       - "[SOUND] ENTITY_EXPERIENCE_ORB_PICKUP;1.0;1.0"
        - "[MESSAGE] %prefix% &e%command_name% &ccan't be executed!"
        - "[TITLE] &e%command_name%;&cCan't be executed;1;2;1"
        - "[ACTIONBAR] &cYou can't do that!"
    test2
:
      type
: "COOLDOWN"
      #With this permission, the cooldown will be bypassed.
      permission
: "commandsmanager.test2"
      time
:
        #Define a custom cooldown time for ranks/players who will have the permission.
        #Format: Permission;Time
        #Time is calculated in Seconds.
        custom
:
         - "commandsmanager.test2.time.vip;5"
        #This default cooldown time applies only to ranks/players without specific permissions for a custom cooldown.
        default
: 10
      #Only in these worlds the commands will have a cooldown.
      worlds
:
       - "world"
        - "world_nether"
        - "world_the_end"
      #Only these commands will have a cooldown.
      commands
:
       - "/tell"
        - "/msg"
        - "/r"
      actions
:
       - "[SOUND] ENTITY_EXPERIENCE_ORB_PICKUP;1.0;1.0"
        - "[MESSAGE] %prefix% &cYou need to wait &e%command_cooldown% &cto execute &e%command_name%&c."
    test3
:
      type
: "DELAY"
      #With this permission, the delay will be bypassed.
      permission
: "commandsmanager.test3"
      time
:
        #Define a custom delay time for ranks/players who will have the permission.
        #Format: Permission;Time
        #Time is calculated in Seconds.
        custom
:
         - "commandsmanager.test3.time.vip;10"
        #This default delay time applies only to ranks/players without specific permissions for a custom delay.
        default
: 20
      cost
:
        #Types: "EXPERIENCE", "MONEY", "CUSTOM".
        #EXPERIENCE: Player's experience points will be used as currency.
        #MONEY: Player's in-game currency will be used as currency.
        #CUSTOM: Specific items will be used as currency.
        #        To define the item, use the format CUSTOM:<material>, where <material> is the name of the item(CUSTOM:DIAMOND).
        type
: "EXPERIENCE"
        #Define a custom cost for ranks/players who will have the permission.
        custom
:
         - "commandsmanager.test3.cost.vip;10"
        #This default cost applies only to ranks/players without specific permissions for a custom cost.
        default
: 20
      #Lenght of the LoadingBar.
      #Built In Placeholder:
      #%command_time% - Returns the number based on the time.
      #%command_time% must be written between " ";
      #The number can still be written, either without the " " or with.
      loadingBarLength
: "%command_time%"
      #Only in these worlds the commands will have a delay and cost.
      worlds
:
       - "world"
        - "world_nether"
        - "world_the_end"
      #Only these commands will have a delay and cost.
      commands
:
       - "/spawn"
        - "/tpaccept"
        - "/warp test"
      actions
:
        onWait
:
         - "[SOUND] ENTITY_EXPERIENCE_ORB_PICKUP;1.0;1.0"
          - "[MESSAGE] %prefix% &cYou need to wait &e%command_time_delay% &cseconds to execute &e%command_name%&c."
        onSuccess
:
         - "[SOUND] ENTITY_EXPERIENCE_ORB_PICKUP;1.0;1.0"
          - "[TITLE] &aSUCCESS;&7Thanks for waiting!;1;2;1"
          - "[ACTIONBAR] &aSUCCESS"
        onFail
:
         - "[SOUND] ENTITY_EXPERIENCE_ORB_PICKUP;1.0;1.0"
          - "[ACTIONBAR] &cYou don't have to do anything while waiting!"
    test4
:
      type
: "COOLDOWN_DELAY"
      #With this permission, the cooldown and the delay will be bypassed.
      permission
: "commandsmanager.test4"
      time
:
        cooldown
:
          custom
:
           - "commandsmanager.test4.time.cooldown.vip;5"
          default
: 10
        delay
:
          custom
:
           - "commandsmanager.test4.time.delay.vip;5"
          default
: 10
      cost
:
        type
: "MONEY"
        custom
:
         - "commandsmanager.test4.cost.vip;0"
        default
: 5
      loadingBarLength
: 5
      worlds
:
       - "world"
        - "world_nether"
        - "world_the_end"
      commands
:
       - "/rtp"
      actions
:
        onWait
:
         - "[SOUND] ENTITY_EXPERIENCE_ORB_PICKUP;1.0;1.0"
          - "[MESSAGE] %prefix% &cYou need to wait &e%command_time_delay% &cseconds to execute &e%command_name%&c."
        onSuccess
:
         - "[SOUND] ENTITY_EXPERIENCE_ORB_PICKUP;1.0;1.0"
          - "[TITLE] &aSUCCESS;&7Thanks for waiting!;1;2;1"
          - "[ACTIONBAR] &aSUCCESS"
        onFail
:
          cooldown
:
           - "[SOUND] ENTITY_EXPERIENCE_ORB_PICKUP;1.0;1.0"
            - "[MESSAGE] %prefix% &cYou need to wait &e%command_cooldown% &cto execute &e%command_name%&c."
          delay
:
           - "[SOUND] ENTITY_EXPERIENCE_ORB_PICKUP;1.0;1.0"
            - "[ACTIONBAR] &cYou don't have to do anything while waiting!"
 
Code (YAML):
cooldowns:

Built In Placeholders
Code (Text):
%prefix%  - Returns the prefix.
%player_name% - Returns the player's name.
%command_name% - Returns the name of the command.
%command_time_cooldown% - Returns the time of cooldown of the command.
%command_time_delay% - Returns the time of delay of the command.
%command_cooldown% - Returns the cooldown time.
%command_cost% - Returns the cost.
If PlaceholderAPI is installed, you can also use its placeholders.
%current_version% - Returns the number of the current version(Only for UpdateCheck Messages).
%new_version% - Returns the number of the new version(Only for UpdateCheck Messages).
PlaceholderAPI placeholder
Code (Text):
It needs PlaceholderAPI to work and this placeholder can be used by any plugin.
%commandsmanager_cooldown_/<command>% - Returns the cooldown time of the command.

Actions
Code (Text):
[SOUND] Sound;Volume;Pitch - Sends a sound to the player.
[MESSAGE] Message - Sends a message to the player.
[JSON_MESSAGE] Message - Sends a jsonmessage to the player.
The JSONMessage must be written between ' '.
[TITLE] Title;SubTitle;FadeIn;Stay;FadeOut - Sends a title to the player.
[ACTIONBAR] String - Sends an actionbar to the player.
[COMMAND_CONSOLE] Command - Executes a command as console.
[COMMAND_PLAYER] Command - Executes a command as player.
To execute the command the "/" is not needed.
Screenshots
[​IMG]
[​IMG]
[​IMG]
[​IMG]
[​IMG]

Donation Link: https://www.paypal.me/IVEHydra
If you want, you can donate to me. This would help me a lot to continue work on updates. Thank you.

Terms of Service
By downloading this plugin you agree the following terms:
You are not allowed to sell or redistribute this plugin.
You are not allowed to claim this plugin as your own.
You are not allowed to modify the code of this plugin.
You are only allowed to use this plugin for your own servers/networks.
I can update this terms of service at any time, without notification.

My Other Resources
[​IMG]
[​IMG]

If you have any problems or bugs with this plugin, contact me or post in the plugin discussion section.
Resource Information
Author:
----------
Total Downloads: 1,866
First Release: Jul 9, 2023
Last Update: Dec 18, 2024
Category: ---------------
All-Time Rating:
2 ratings
Version -----
Released: --------------------
Downloads: ------
Version Rating:
----------------------
-- ratings