Cmdperday
Cmdperday
Cmdperday by Diederikmc
Cmdperday 3.0 is released! Assign command-limit-permissions to players or player-groups with permissions to limit every command you want for as many times as you want per day! You don't need to configure anything, just assign command-limit-permissions to players in your permission plugin.
HOW TO LIMIT COMMANDS:
You can limit the use of commands per day with a combination of really simple permissions and the limits in the config.
how the config looks like (the config explains everything):
# config.yml, Cmdperday is made by Diederikmc # ============================================== # # Use notepad++ for reading and editting .yml files, do not use tabs! # Players need permission for the command to use it, the plugin will check if the player has permission for it and will limit it if it is configured as limited for x times. # Everything is done before the command takes effect, so limits can take effect. # # INFORMATION ABOUT THE 'CommandData.yml' # ========================================= # - The CommandData.yml holds the amount of times that players with a permission that limits the use of a command used that command # - if the datecreatedisn't set it will be set when the mechanism is called when using a command # - after checking if the "datecreated" is set: # 1. This file resets every day on the first command usage(wich will be handled too, don't worry) # 2. The command will be handled # # - Remember that players on your server could play in a different time-zone, they just have to deal with the real time of the server. # - If there is a problem with the CommandData.yml: just delete the file if there is an error and the plugin will remake the file and that will solve the problem(CommandData will be lost) # # Feedback, problems, ideas or something else? # ================================================ # Post a comment or PM me! # # THE CONFIG # ========================================= # check if the player has the permission to use the command before limiting it # (only functional if the player has no permission to use the command and does have a limit for using it, # this can happen when: - the player has no permission to use the command but the group of the player has # - a unfunctional limit in the config # Set it to true if you don't want a message that it is limited if it isn't even allowed, which very is rare) check_permission_before_limiting_it: false # continue to limit the command when there is no permission found for the command to check if the player has it # (only functional if check_permission_before_limiting_it is set to true) continue_limiting_if_no_permission_was_found: true # use permission-assigned groups # assign groupnames to users like this: group.user # other plugins use this as well, so you might have them already # groups # sort it in the right order, so if donator inherits user, the heal-limit will be 10 and not 2 groups: # groupname user: # command with assigned limit heal: 2 feed: 3 donator: heal: 10 feed: 15 moderator: ban: 10 # groups that bypass the limits of groups which they inherit bypassgroups: # groupname admin: # list of commands which are normally limited for the group, these limits will be ignored - ban - heal - feed
Commands of Cmdperday itself
command | description | usage | permission |
---|---|---|---|
/reloadCommandData | Reloads the CommandData.yml | /reloadCommandData | cmdperday.reloadCommandData |
Information
You can find all information in the config.yml! (It's more a "readme" file)
Recommended: Use Java 7 to start the server.
CommandData.yml:
- Command usages are stored in the CommandData.yml
- It is not recommended to edit it
- the plugin uses it as a database
- You can reload it with /reloadCommandData
How to install the plugin
Just drag it in your plugin folder and start your server. (Thousands of tutorials while it's so easy, still people who don't know how :I )
Feedback, problems, ideas or something else?
Post a comment or PM me! :D
@JohOply
sentences.yml will come, but not so quick, I'm making an other plugin right now, And I now it writes the usage to the CommandData.yml when it is blocked, just for extra info, I find it interesting how many times people try the command when it's blocked, some stupid people keep trying it :P. I might add a config option for it. And don't worry, It blocks commands perfectly, tested it a lot of times! (Always make sure that your config is set up right ;) )
@mclightcraftproduction Sounds like a good idea, except for minutes, minutes are too fast, I would use cooldowns for limits per minute or sec.
I like this plugin! Maybe you can add custom times in the future, for example cmd per hour, minutes, weeks, months etc.
@Diederikmc
It works properly !
Two requests :
- Add a template file to translate sentences
- When the command is blocked, it add already in the CommandData.yml
@Builder874
Updated it! Now it does!
@JohOply
Unfortunately this plugin does not work with PEX right now. Sorry.
Doesn't work for me :/
@JohOply: Right now I cannot get it to work with PEX. Maybe its an error on my side. I have no idea. Do you think you can test this plugin with PEX Diederikmc?
@JohOply
I don't know, I just don't use PEX, maybe someone else can confirm it?
Hello ! :)
I'm not sure that the plugin work with PermissionsEx :/ Can you confirm please ?
This is awesome!!! Thank you so much!
Love it. This is a very nice idea, Keep going :)