[INACTIVE][ECON] Command iConomy v6 - Make any plugin an iConomy plugin [766]

Discussion in 'Inactive/Unsupported Plugins' started by deltahat, Mar 20, 2011.

Thread Status:
Not open for further replies.
  1. Offline

    deltahat



    Command iConomy - Charge for each command
    Version v7

    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 iConomy 4.5+ to be installed.

    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
    ^ = Start of command
    $ = End of command
    \S+ = One or more non-whitespace characters

    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
    Download
    Direct - https://github.com/rmichela/Command-iConomy/downloads
    Source - https://github.com/rmichela/Command-iConomy


    Release Notes (open)

    Version 1
    • Initial Release
    Version 2
    • Added free permission
    • Only match first expression
    • Match but don't display zero cost commands
    Version 3
    • Increased priority of CommandPreProcess hook to improve compatibility
    Version 3.1
    • Bukkit 602 compatibility
    Version 5
    • iConomy 4.6.5 suport
    • Added optional logging to the console
    • Added optional matching of chat events
    • Added command cost to insufficient funds message
    • Verified CB612 and MC1.4 support
    Version 6
    • Added command cooldowns
    • Added fee collection account
    Version 7
    • iConomy 5 support
     
    Linki, Senzuri and itsatacoshop247 like this.
  2. Offline

    mickael002

    ledhead900 how to do this:

    /f create myfactionname (cost 25 $)
     
  3. Offline

    deltahat

Thread Status:
Not open for further replies.

Share This Page