BattleCommandLimiter
BattleCommandLimiter
So you found an amazing plugin, but you want players to only be able to use the command twice a day, or maybe you want them to have to pay 100 Gold.
BattleCommandLimiter allows you to create custom "rules" for all player commands that are checked before they are executed.
Types of Rules
You can limit based on
- time
- money
- items
- any combination of the above
Examples
- Time : <times>x every <sec,min,hour,day>
- example1: example1: 3x every 60 sec
- example2: 4x every 1 day
- Money: <amount> money
- example1: 50 money
- Items
- - diamond : 3
- - obsidian : 4
- Composite Rules
- example: 1x every 15 seconds AND 50 money
Requirements
- MySQL ( possibly will drop this in the future )
Example Config
limitedCommands: payPrefix: pay spawn: payFromRule: rule2 ## allow players to bypass rule1 by using rules 2,3. players would need to type payspawn rule1: 1x every 10 seconds AND 10 money rule2: 75 money rule3: items rule3_items: - fire: 10 arena: dontLimit: [list, help, noArgs] rule1: items and 500 money rule1_items: - fire: 1 - iron_block: 8
So I have the rules set up for a couple commands. What's the payPrefix? Would a user be able to do /repair hand, and it would charge them money? (I have that set up) Or does the player have to type /payrepair hand?
@dalphi
The Database requirement is because it stores a record of commands that have a time limited element. That way I can see how many of those commands have been typed in a given time period.
This looks like it would be good for DOS protection.
What's the database requirement for?