CommandsManager
作者:rebot | 分类:模组
Minecraft 版本: 1.8 1.8.1 1.8.2 1.8.3 1.8.4 1.8.5 1.8.6 1.8.7 1.8.8 1.8.9 1.9 1.9.1 1.9.2 1.9.3 1.9.4 1.10 1.10.1 1.10.2 1.11 1.11.1 1.11.2 1.12 1.12.1 1.12.2 1.13 1.13.1 1.13.2 1.14 1.14.1 1.14.2 1.14.3 1.14.4 1.15 1.15.1 1.15.2 1.16 1.16.1 1.16.2 1.16.3 1.16.4 1.16.5 1.17 1.17.1 1.18 1.18.1 1.18.2 1.19 1.19.1 1.19.2 1.19.3 1.19.4 1.20 1.20.1 1.20.2 1.20.3 1.20.4 1.20.5 1.20.6 1.21 1.21.1 1.21.2 1.21.3 1.21.4 1.21.5 1.21.6 1.21.7 1.21.8 1.21.9 1.21.10 1.21.11
平台: spigot
标签: management utility

Introduction
CommandsManager is a plugin that allows you to Block, Add Cooldowns and Add Delays with Costs to any Command.
Features
- 1.8 - Newer Versions Support.
- Fully Customizable.
- HEX Color Codes Support.
- PlaceholderAPI Support (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 Cooldowns or Delays with Costs to any command.
- Add Cooldowns and Delays with Costs 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:".
- Seconds/Minutes/Hours/Days Time Format.
- Block Colons in the first argument of the command(/bukkit:help).
- Commands per World.
- Custom Actions.
Requirements
- Spigot
- Vault
- Economy Plugin (Essentials, ecc..)
- PlaceholderAPI (Optional)
How to install
- Download CommandsManager.jar from this page.
- Download Vault and an Economy Plugin (Essentials, ec...).
- Download PlaceholderAPI (Optional).
- Put CommandsManager, Vault, an Economy Plugin and PlaceholderAPI inside your plugins folder.
- Start your server.
Commands
/commandsmanager help - Sends a message with all commands and permissions.
/commandsmanager reload | rl - Reloads the configuration file.
/commandsmanager reset <player_name> <all/command> - Resets a player's cooldown for all commands or a specific command.
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.reset - Allows to reset player's cooldown for all commands or a specific command.
commandsmanager.bypass.blockColons - Allows to execute commands with colons in the first argument of the command.
Files
config.yml ``` 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." command: blockColons: "%prefix% &cYou can't use colons in the first argument of the command!" reset: noPlayer: "%prefix% &cNo data found for &e%player_name%&c." noCooldown: "%prefix% &e%player_name% &chas no cooldown for the command: &e%command_name%&c!" cooldownRemoved: "%prefix% &e%player_name%'s &2cooldown for the command: &e%command_name% &2has been removed!" allCooldownsRemoved: "%prefix% &2All &e%player_name%'s&2 cooldowns have been removed!" 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" bossBar: enabled: true replaceActionBar: false #If 'progress' is set to true, when the player needs to authenticate, the boss bar will decrease every second. progress: true #Only works for 1.9+ versions. color: RED #Only works for 1.9+ versions. style: SOLID message: "&cYou need to wait &e%command_time_delay% &cseconds to execute &e%command_name%&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_/% - 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. #[WAIT] Seconds - Waits a certain amount of time before performing another Action. 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:, where 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!" ``` cooldowns.yml ``` cooldowns: ```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.
%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
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 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.
[WAIT] Seconds - Waits a certain amount of time before performing another Action.
Screenshots
Screenshots     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 only allowed to use this plugin for your own servers/networks.
- I can update this terms of service at any time, without notification.
If you have any problems or bugs with this plugin, contact me.
请登录后举报
暂无评论,抢个沙发吧~