

It also doesn't announce anything like money deducted or not enough money. It seems to work for default bukkit commands, like /tp, but doesn't work for other commands like /warp or /sethome from Essentials. Three additional settings can be made in the config.yml file to localize Command iConomy's text.
#Iconomy commands free#
Ex:ĬommandIConomy.Free - Grants free access to all commands. To do so, add a space and then the number of seconds to wait after the command's cost. You can now configure a number of seconds before charging a player again for a command. \S+ = One or more non-whitespace characters>įor best results, please study and learn regular expressions!įor more info on regular expressions, see: Together these features allow open ended commands to be individually charged. If the command is configured with a cost of zero, processing will stop but the player will not be charged. If a match is found, Command iConomy stops looking for a match and charges the player the configured amount. Regular expressions allow you to charge separately for individual sub-commands or even specific command arguments.Ī typical configuration line looks like this: ^/tp$: 10Ī configuration line matching sub-commands might look like this: ^/time (day|night)$: 20Ĭommand expressions are matched in order from top to bottom. Command iConomy matches regular expressions against user input. To set the price of a command, add a line to prices.yml. Command iConomy requires Vault!Įxamples include charging for each summoned magic carpet, or adding a fee for different kits. If text entered by a player matches a configured rule, Command iConomy will attempt to bill the player. Commands are matched using java regular expressions. PLEASE OPEN A NEW TICKET FOR EVERY ISSUE, THERE WILL BE NO HELP IN COMMENTS!Ĭommand 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. : .Economy.hasAccount(Ljava/lang/String )ZĪt .chargePlayerForCommand(CIListener.java:80)Īt .onPlayerCommandPreprocess(CIListener.java:47)Īt .JavaPluginLoader$5.execute(JavaPluginLoader.java:293)Īt .callEvent(RegisteredListener.java:58)Īt .callEvent(SimplePluginManager.java:339)Īt .handleCommand(NetServerHandler.java:750)Īt .chat(NetServerHandler.java:722)Īt .a(NetServerHandler.java:715)Īt 3Chat.a(Packet3Chat.java:33)Īt .b(NetworkManager.java:226)Īt .a(NetServerHandler.java:93)Īt .a(SourceFile:108)Īt .w(MinecraftServer.java:527)Īt .run(MinecraftServer.java:425)Īt .Command iConomy - Charge for each command 17:45:22 Could not pass event PLAYER_COMMAND_PREPROCESS to CommandIConomy


Command iConomy - Charge for each command
