Command iConomy - Charge for each command
PLEASE OPEN A NEW TICKET FOR EVERY ISSUE, THERE WILL BE NO HELP IN COMMENTS!
Version v10.0.0
Overview
Command iConomy is a plugin that allows a server admin to assign a cost to server commands that is deducted from a player's iConomy account whenever a player uses that command. Commands are matched using java regular expressions. If text entered by a player matches a configured rule, Command iConomy will attempt to bill the player. Command iConomy requires Vault!
Examples include charging for each summoned magic carpet, or adding a fee for different kits.
Configuration
To set the price of a command, add a line to prices.yml. Command iConomy matches regular expressions against user input. Regular expressions allow you to charge separately for individual sub-commands or even specific command arguments.
A typical configuration line looks like this: ^/tp$: 10
A configuration line matching sub-commands might look like this: ^/time (day|night)$: 20
Command expressions are matched in order from top to bottom. If a match is found, Command iConomy stops looking for a match and charges the player the configured amount. If the command is configured with a cost of zero, processing will stop but the player will not be charged. Together these features allow open ended commands to be individually charged. Ex:
^/warp help$: 0
^/warp \S+$: 10
Really Quick Regular Expression Info
<<code>>
^ = Start of command
$ = End of command
\S+ = One or more non-whitespace characters<</code>>
For best results, please study and learn regular expressions!
For more info on regular expressions, see: http://www.regular-expressions.info/reference.html
Command Cooldowns
You can now configure a number of seconds before charging a player again for a command. To do so, add a space and then the number of seconds to wait after the command's cost. Ex:
^/warp \S+$: 10 30
Permissions
CommandIConomy.Free - Grants free access to all commands.
Internationalization
Three additional settings can be made in the config.yml file to localize Command iConomy's text. You will have to create config.yml. They are:
NoAccountMessage
InsuficientFundsMessage
AccountDeductedMessage
Substitute (cost) for cost
Requires Vault:
http://dev.bukkit.org/server-mods/vault/