[ECON] Command iConomy - Make any plugin an iConomy plugin [1.4.7, 1.5beta]

Discussion in 'Inactive/Unsupported Plugins' started by Kostronor, Jun 1, 2011.

  1. Offline


    Since @deltahat is in lack of time, i will continue his plugin for him:
    Command iConomy - Charge for each command
    Version v7

    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.

    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

    • CommandIConomy.Free - Grants free access to all commands.
    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

    Changelog (since Kostronor):

    [COLOR=#444444][SIZE=11px][COLOR=#444444][SIZE=11px][COLOR=#444444][SIZE=11px][COLOR=#444444][SIZE=11px][FONT=Bitstream Vera Sans Mono]Version 9[/FONT][/SIZE][/COLOR][/SIZE][/COLOR][/SIZE][/COLOR][/SIZE][/COLOR]
    • Reworked against cb1597/1602
    • should work with every never build, if not please instantly contact me and i will fix it!
    • Vault support!
    [COLOR=#444444][SIZE=11px][COLOR=#444444][SIZE=11px][COLOR=#444444][SIZE=11px][COLOR=#444444][SIZE=11px][FONT=Bitstream Vera Sans Mono]Version 8[/FONT][/SIZE][/COLOR][/SIZE][/COLOR][/SIZE][/COLOR][/SIZE][/COLOR]
    • Reworked against cb1337
    • should work with every never build, if not please instantly contact me and i will fix it!
    • Register support!
    [FONT=Bitstream Vera Sans Mono]Version 7[/FONT]
    • Reworked against cb818
    • should work with every never build, if not please instantly contact me and i will fix it!
    • 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
    //Sidenote spoiler's are messed up so i removed them.
    //if someone is against this, he can format my post himself :p
  2. Offline


    Using iConomy 6.0.5.
    CB 1185
    Not working at all.
  3. Offline


    Also, implementing items instead of money would be cool.
  4. Offline


    register, and with it iconomy6 will come as soon as i myself find sometime to understand register
    a good idea, but something added later :D
  5. Offline


    No, I don't use this permission, I havn't the permission "*" (I'm not a noob :p) and I'm not OP.

    Help, help, heeeelp ! xD
  6. Offline


    First, nice Plugin. I really love it.

    But I have a problem:

    I'm not OP
    I don't have CommandIConomy.Free in the permissions( yeti (3.1.6))

    and I get this error when I use a command in the price.yml list:

    My config and prices flies
  7. Offline


    seems like you are using IConomy 6?
    At the moment, only Iconomy 5 is supported, but i'll change that as soon as i get some more time.

    ok, looks like i have to get on your server to try it myself. If you have Skype, add Kostronor there, than i can easily send you a debugging-version
  8. Offline


    No, it's work cool now, I had the permission iconomycommand.free, i'm a dumbass. xD
  9. Offline


    ok fine, thanks for letting me know :D
  10. Offline


    No problem xD and very sory for the time lose :/
  11. Offline


    Quick question, along with making commands cost iconomy money, can people chatting cost iconomy money too?
  12. Offline


    enable chargeforchat, then yes :D
  13. Offline


    Thanks Kostronor.

    My server is filled with spammers. We're all good friends but id still want them to ease on the chatting lol
  14. Offline


    the regular-expressions has to be the most confusing part of this plugin. well it is the only part of the plugin and is not user friendly.
  15. Offline


    Need iConomy 6 support.
    Most of the PlugIns i`m running are based on iC6.

    Is there any other way to let my player pay for warping ?
    Using MyWarp atm.
  16. Offline


    But sadly it's the only possible way of having more features than simple cleartext :D
    you just have to remember two characters, one at the start of your command and one at the end, and everything else can be just text.
    I'm sorry, but i do not have the concentration to rewrite the iconomy-code at the moment, i'll surely tell you the moment its done!
  17. Offline


  18. Offline


    I dont like i con 6. i con 5 is good enough. and in i con 6 you lose the bank feature.
  19. Offline


    Any plans to make this work with Register, so it will work with all econ plugins?
  20. Offline


    Im using this plugin, with bCooldowns, when using /home it charges me twice, once before the warmup and once after,
    # ^/tp: 10
    ^/home: 25
  21. Offline


    it should only charge you once, perhaps, the plugin you are using cancels the event and triggers it later.
    I'll look at it, but i think, this could be added :)
  22. Offline


    It would be amazing, if you could add warmups aswell :D
    - I reckon that you execute the /home command and your plugin picks it up, but then BWarmups waits for it to happen and then triggers it again...
  23. Offline


    Spout Hotkeys completely bypass this plugin.


    ^/heal$: 5

    If a user types /heal they will be charged 5 coins and healed. However, if they setup a Spout Hotkey... say /heal to their 'h' key... then if they just press 'h' they will be healed at no cost.

  24. Offline


    Please update for register, Theres no download links for ico5 and its not being supported any more.
  25. Offline


    then please tell the author of spout-hotkeys to use the onPlayerCommandPreprocess event! thats the only way for me to catch the command

    will try this weekend!
  26. Offline


    Any luck then? I'm still waiting... lol
  27. Offline


    [SEVERE] Could not pass event PLAYER_COMMAND_PREPROCESS to Command iConomy
    java.lang.NoClassDefFoundError: com/iConomy/iConomy
    at com.ryanmichela.cmdiconomy.CIListener.chargePlayerForCommand(CIListener.java:80)
    at com.ryanmichela.cmdiconomy.CIListener.onPlayerCommandPreprocess(CIListener.java:46)
    at org.bukkit.plugin.java.JavaPluginLoader$5.execute(JavaPluginLoader.java:272)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:339)
    at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:750)
    at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:722)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:715)
    at net.minecraft.server.Packet3Chat.a(Packet3Chat.java:33)
    at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:92)
    at net.minecraft.server.NetworkListenThread.a(SourceFile:108)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:471)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:374)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:417)
  28. Offline


    are u running iconomy6?
    plugin is not compatible with ico6 yet :(
    use iconomy 5x or wait for plugin update:)
  29. Offline


    Awaiting patiently for iconomy6 support.
  30. Offline


    This is how iConomy 6
    Certainly looking forward to ;)
  31. Offline


    Waiting a few weeks now, Looks like no iConomy 6 support.

Share This Page