[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

    woodzy

    yea my mods/admins dont spawn items any more XD i charged 5000 per use lol
     
  3. Offline

    goog

    Not sure how to set up custom messages with config.yml. Please explain?
     
  4. Offline

    deltahat

    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

    Upgrade and then check out your newly created config.yml file.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 12, 2016
    vlado2portos likes this.
  5. Offline

    vlado2portos

    Thanks m8t seems to be working fine !
     
  6. Offline

    Spazmic

    It's MC 1.4 and thanks for updating it. I will try it on 617 and give you feedback :)
     
  7. Offline

    vlado2portos

  8. Offline

    deltahat

    What is CButD?
     
  9. Offline

    vlado2portos

    Craft Bukkit up to Date plugin that downloads the update if plugin is updated :)
     
  10. Offline

    tony.t

    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?
     
  11. Offline

    deltahat

    Purchase cooldowns are on the future features list in github.
     
  12. Offline

    Trickyrive

    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?
     
  13. Offline

    deltahat

    Not yet. It's on the roadmap in github.
     
  14. Offline

    rasse

    download link doesn't work, does this work with 617?
     
  15. Offline

    deltahat

    I'm not sure I understand. Just download the .zip file from github.
     
  16. Offline

    narrowtux

    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/
     
  17. Offline

    RomaClanServer

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

    sdeddy

    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!!
     
  19. Offline

    Marduk1608

    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)
     
  20. Offline

    2Bucks

    can we be allowed to set different prices per group?
     
  21. Offline

    deltahat

    Are you running the latest version of iConomy and Command iConomy?
     
  22. Offline

    darthsiddious

    is there any plans to use this for boseconomy? this would be nice for my server, but i dont use iconomy. thanks!
     
  23. Offline

    Marduk1608

    yes, rechecked just a moment ago
     
  24. Offline

    Heinz Harald

    Hi,

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

    Thx
     
  25. Offline

    Tealk

    hi its possible to make that a player become the money from the commands?
     
  26. Offline

    2Bucks

    When I type "^/npc create \S+$: 20000" and I save the prices file, it turns into "^/npc create S+$: 20000" when I go back to check it. Thus, I can't charge people for the creation of an NPC. I don't know why it takes off the \ in front of the S
     
  27. Offline

    deltahat

    Sounds like a problem with your text editor. Command iConomy never writes to any of the config files. It only reads from them.

    What other plugins are you using? I cannot reproduce the problem with CB670.

    Command iConomy v6 Released

    New Features
    • Deposit fees into a specified iConomy account - use the PayTo config option in config.yml
    • Payment cooldown - you can now specify how long a payment is good for

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 12, 2016
  28. Offline

    Fluub

    Hey guys :) i'm using CB 670 and Iconomy 4.6.5
    Here is one of my prices' file lines :
    # ^/mc: 200
    There is no errors in console everything is fine.
    But in game when i type /mc it doesn't charge me at all like the plug in wasn't existing.
    I didn't touch to the config file and my version of the plug in is the latest one on your github.
    Thanks :)
     
  29. Offline

    deltahat

    Remove the # from the front of the line. # means ignore this line in yml.
     
  30. Offline

    Marduk1608

    is there a way to disable the .free permission so even admins have to pay?!
     
  31. Offline

    deltahat

    Add -CommandIConomy.Free to the admin's group after *
     
Thread Status:
Not open for further replies.

Share This Page