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

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

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

    deltahat

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)


    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



    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.  
  3. Offline

    Wolfy9247

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Is this currently working with CB 602?
  4. Offline

    deltahat

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Yes
  5. Offline

    Senzuri

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    I get this when starting up: (612)

    Using 4.63 of iConomy, when I disable CommandiConomy this error doesn't come up on start up. (Also getting an error everytime I use a slash command).
  6. Offline

    Slayer9x9

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Yeah I'm having the same issue...
  7. Offline

    deltahat

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    I'll look into getting things working with CB612
  8. Offline

    woodzy

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    yea my mods/admins dont spawn items any more XD i charged 5000 per use lol
  9. Offline

    goog

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Not sure how to set up custom messages with config.yml. Please explain?
  10. Offline

    deltahat

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Command iConomy 5 Released
    There is no 4 :)

    Bugs
    • Fixed iConomy 4.6.5 compatibility bug
    Features
    • Added optional verbose logging to console
    • Added optional matching of chat events - you can now charge people for swearing
    • Added command cost variable to insufficient funds message.
    • Verified CB612 and MC2.4 support
    vlado2portos likes this.
  11. Offline

    deltahat

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Upgrade and then check out your newly created config.yml file.
  12. Offline

    vlado2portos

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Thanks m8t seems to be working fine !
  13. Offline

    Spazmic

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    It's MC 1.4 and thanks for updating it. I will try it on 617 and give you feedback :)
  14. Offline

    vlado2portos

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
  15. Offline

    deltahat

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    What is CButD?
  16. Offline

    vlado2portos

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Craft Bukkit up to Date plugin that downloads the update if plugin is updated :)
  17. Offline

    tony.t

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Hi!
    Great plugin, but I'm sure you can make it even better!
    You should add a feature which would allow the players to rent certains commands.
    When a player rent a command for a certain amount of time, he can use it as many times as he wants.
    What do you think?
  18. Offline

    deltahat

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Purchase cooldowns are on the future features list in github.
  19. Offline

    Trickyrive

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    I'm trying to set up buying items using the /item command, which takes the form of /item (name) (amount). I currently have it set up like so: ^/item cobblestone$: 5 to charge 5 money for cobblestone, but this wont take into account the amount. Is there any way to do this?
  20. Offline

    deltahat

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Not yet. It's on the roadmap in github.
  21. Offline

    rasse

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    download link doesn't work, does this work with 617?
  22. Offline

    deltahat

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    I'm not sure I understand. Just download the .zip file from github.
  23. Offline

    narrowtux

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    As for the purpose of regular expressions, read this comic: http://xkcd.com/208/
    For learning regular expressions, I can recommend you a great free tool that helps with developing regular expressions: http://gskinner.com/RegExr/
  24. Offline

    RomaClanServer

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    I have a question, I am trying to make a user-driven rank system that uses roles and iconomy as a sort of exp. Would this plugin be able to recognize the difference between "/joinrole rank Soldier" and "/joinrole rank Officer"? Thanks for any help, if it can that is really cool.
  25. Offline

    sdeddy

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    AWESOME!! Plugin
    I really like it because now I can take all those over-powered plugins and make it so that players have to pay to use them.
    I agree with Zaros though, a time limit function would be nice.
    keep up the good work!!
  26. Offline

    Marduk1608

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    im getting this error when using commands with cb670

    Code:
    2011-04-09 19:19:26 [SEVERE] Could not pass event PLAYER_COMMAND_PREPROCESS to Command iConomy
    java.lang.NullPointerException
        at com.ryanmichela.cmdiconomy.CIListener.chargePlayerForCommand(CIListener.java:59)
        at com.ryanmichela.cmdiconomy.CIListener.onPlayerCommandPreprocess(CIListener.java:46)
        at org.bukkit.plugin.java.JavaPluginLoader$5.execute(JavaPluginLoader.java:228)
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:59)
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:255)
        at net.minecraft.server.NetServerHandler.c(NetServerHandler.java:588)
        at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:559)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:553)
        at net.minecraft.server.Packet3Chat.a(SourceFile:24)
        at net.minecraft.server.NetworkManager.a(NetworkManager.java:198)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:72)
        at net.minecraft.server.NetworkListenThread.a(SourceFile:100)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:368)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:283)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:375)
  27. Offline

    2Bucks

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    can we be allowed to set different prices per group?
  28. Offline

    deltahat

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Are you running the latest version of iConomy and Command iConomy?
  29. Offline

    darthsiddious

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    is there any plans to use this for boseconomy? this would be nice for my server, but i dont use iconomy. thanks!
  30. Offline

    Marduk1608

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    yes, rechecked just a moment ago
  31. Offline

    Heinz Harald

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Hi,

    pls add that all the money goes to one specific iConomy-Account if its set in the config.yml.

    Thx
  32. Offline

    Tealk

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    hi its possible to make that a player become the money from the commands?
Thread Status:
Not open for further replies.

Share This Page