Command iConomy
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/
@psirusa
It seems to work for default bukkit commands, like /tp, but doesn't work for other commands like /warp or /sethome from Essentials.
It also doesn't announce anything like money deducted or not enough money.
It also doesn't stop you from running any (supported) commands that you don't have enough money for.
Man I sure do miss Pay4Commands. It gave me a reason to have an economy on my little server, and encouraged people to not set tons of warp points and homes. And it worked with any and all commands. I could set the command "/sethome" to something cheap so you can set your first home for cheap, but then "/sethome * " would cost a lot, like $50000, so you had to make a decent amount of money prior to expanding your homes because you'd have to do something like " /sethome Lakeside" to set a specific home name, and I made the /delhome command really expensive so you couldn't just delete the default home and do the cheap /sethome command. Haha, I loved it. I used it in conjunction with Jobs so you made money if you joined a job. I also did a lot of /setworth commands to support a lot of the common items from the 200 mods I had running with Cauldron, which made it easy to just do a "/sell hand" command to get rid of crap you don't want but earn money for it at the same time. I think I set cobblestone to 3 cents and dirt to a penny, lol.
I tried Pay4Commands with 1.7.10 a couple months ago and it didn't work, sadly. I wish someone would revive it.
I'm going to assume this still works and try to load it up, as it looks like you might try to catch everything at Vault. Thanks for making this!
Good plugin, but a bit hard to understand :D
@zombiepig5000
it works with everything working with vault, look at their page...
Dose this work with the nomal "iconomy"?
@drift2013
first you are missing ^ and $ für start and end. /tpa is only matching /tpa and nothing else, this cannot be your config if it matches ;)
@Kostronor
/tpaccept: 0 /tpa: 50 /back: 50 /home: 30 /spawn: 30
That's my price.yml If I tpa another player. It will also cost $50.
this is the exact sequence my file is written EDITED I REMOVED ALL THESE
and everything works ok now, but i would have to list every item or price every warp separate... I though that ths command
<<command>>
\S+$: 500 being listed last would take care of all the other commands that are the same such as /warp XXX but an exact match was not foundThanks for any help Andy
@drift2013
Please fill a bug-Report for everything not working! And please try the plugin out before commenting here. It works on all versions, as long as bukkit is not breaking anything and this is unlikely!
Please updata to 1.6.2 THX
@unon1100
Well, i can state it thousands of times, yes, it should work ;) Bukkit is designed to have it working with new versions! If there is an error, open a ticket and i will deal with it!
@Out2
PLEASE OPEN A TICKET FOR HELP, THANKS!!!1!!111!one!!eleven!
@Out2
prices.yml:
^/warp$: 5
You forgot to use the dollar sign to signify the end of the command. Do this and see if it still happens.
Off topic from reply... Is this working on 1.6?
When a player doesn't have enough money, command execution is not blocked and player doesn't receive any message.
Example: The player has 20$. Execute command /warp will cost 50$. The command /warp is executed and the player will not lose any money.
The money is taken from player account only when it has the right ammount money.
Console error:
Config files:
I use: CB 1.5.2-R1.0, Command iConomy 11.0.0, Vault 1.2.25 and Essentials (for economy) 2.11.1.
Does this work with other econ plugins, as long as they are compatible with vault?
new Version out every moment, re-added charging for chat and the plugin now will charge for ops on default, you can switch to previous behaviour with a configuration option.
two new config lines:
#select, if ops should be free of charge
NotChargingForOPs: false
#select, if chat should also be charged
ChargeForChat: false
if not already in your config, these default values will be selected!
@Kostronor
Great! This plugin is very useful.
@mc_crinkle
hey mc_crinkle,
i told you in your ticket, that the default-behaviour of the CommandIConomy.Free is to be selected for ops.
here is my code-snippet:
if you want to change that, you have to use the bukkit permissions system and remove the permission for ops.
I have made you a build spezially for you since you are to lazy to handle permissions instead of yelling at me ;) https://dl.dropboxusercontent.com/u/28093398/Command-iConomy.jar
Whats the point of telling people to report problems in tickets if you're just going to delete tickets without answering them?????
Please make the plugin take money from OPS/admins as well.
Yes, this will get updates!
The plugin isn't charging OPs. Please add this or at least an option for this because this is absolutely essential.