Inactive [ECON] Gold2Economy VAULT EDITION v1.4_r13 [1.3.2-R3.0+]

Discussion in 'Inactive/Unsupported Plugins' started by turt2live, Dec 31, 2011.

  1. Offline

    turt2live

    Gold2Economy - Vault Edition

    Currently G2E-Vault is in version 1.4_r13. G2E is a plugin not written by myself, but in fact written by EdTheLoon who seems to have left it behind :( A lot of people wanted Vault support so I made it happen, if you are interested in the versioning scheme I used scroll down to the bottom of the post, otherwise, I'll bet you want to know more about the plugin.

    Gold2Economy allows you as a player to sell your gold, iron, and diamonds for cash in an economy system. This is great if you want to implement a source of income for players, but don't want to hassle with shops. As a server administrator you can control whether or not each item can be converted to cash and control the rate.

    Developers: There is a maintained API for this plugin if you want to use it, it's straightforward and is in the progress of being documented by myself.

    Register is no longer supported due to the fact it is now 100% outdated, you MUST use Vault in order to have G2E-Vault work.

    How to install:
    1. Add the Gold2Economy JAR File to your /plugins folder
    2. Add the Vault JAR File to your /plugins folder
    3. Start your server
    4. Edit the configuration
    5. Type /gi reload
    6. Start using the plugin!
    Having issues? Submit a bug report here.
    Download:
    G2E Vault Edition: Click me!
    G2E Vault Source: Click me! (GitHub)
    G2E Register Only: Click me! (1.4 version, does NOT use Vault. Broken in CraftBukkit R5) Not recommended!

    Dependencies:
    Vault (Download) [REQUIRED]

    I am not the original author of this plugin, EdTheLoon is, I just added Vault to his plugin

    Commands
    • /gi - Shows you the menu
    • /gi rates - Shows you the conversion rates
    • /gi buy <item> <amount> - Buys an item from the server
    • /gi <item> <amount> - Converts <amount> of <item> into money. <item> can be 'iron', 'gold', 'diamond' or an item ID from the custom list
    • /gi <item> all - Converts all of the <item> in your inventory into money. <item> can be 'iron', 'gold', 'diamond' or an item ID from the custom list
    • /gi reload - Reloads the configuration
    Permissions
    • Gold2Economy.iron - Allows the conversion of iron
    • Gold2Economy.gold - Allows the conversion of gold
    • Gold2Economy.diamond - Allows the conversion of diamond
    • Gold2Economy.admin - Allows use of the reload command
    • Gold2Economy.<itemID> - Allows the conversion of the custom item, this is not covered by Gold2Economy.*
    • Gold2Economy.* - Allows access to all features
    Note: Permissions apply for both buy and sell!

    Change log:
    GitHub Commit History (turt2live)
    Change Log (open)

    Version 1.4: Revision 13: (Source at this stage)
    • Fixed various bugs
    • Added buyback (/gi buy)
    Version 1.4: Revision 12: (Source at this stage)
    • Cleaned code (mostly comments)
    • Fixed custom items not being handled correctly
    Version 1.4: Revision 11: (Source at this stage)
    • Various updates, nothing major
    Version 1.4: Revision 10: (Source at this stage)
    • Removed debug code and fixed permission problem
    • MC 1.2 Support
    Version 1.4: Revision 9: (Source at this stage)
    • CraftBukkit R5 (MC 1.2) prep - No more register
    • Added support for custom items
    Version 1.4: Revision 8: (Source at this stage)
    • Bug Fix: Configuration not reloading
    Version 1.4: Revision 7: (Source at this stage)
    • Recompiled to JRE 1.6.0
    Version 1.4: Revision 6: (Source at this stage)
    Version 1.4: Revision 5: (Source at this stage)
    • Fixed the API
    • Updated for CraftBukkit RB 1.1-R1
    Version 1.4: Revision 4: (Source at this stage)
    • Fixed /gi reload
    • Fixed a bug that was bound to happen eventually (on Register disable/enable)
      • Added Vault onEnable/Disable
    • Fixed a configuration persistence error
    • Fixed a configuration not loading correctly
      • If anyone can fix the code I'm not really proud of you can see it here
        • It is supposed to load the config for the plugin, but plugin.getConfig(); doesn't work right :(
        • This code will not ruin functionality of the plugin, I just don't like it
    • Broke the API, badly
      • Yea, sorry, I kinda hit it with a truck then smashed it with a hammer after I finished fixing the configHandler...
        • I'm working on fixing it though.
    Version 1.4: Revision 3: (Source at this stage)
    • Fixed a few /gi command bugs
    • Added the VaultSupport class to handle portions of Register as well
    • Started adding GitHub tags for releases
    Version 1.4: Revision 2:
    • Fixed some command bugs
    Version 1.4: Revision 1 (First Release):
    • Added Vault Support
    Anything pre-1.4_r1 is EdTheLoon's code, you can see the commit history here.


    Version Naming (open)

    Versions are named as follows:
    Version X.Y_rZ
    X.Y represents the last build of G2E built by EdTheLoon while _rZ represents the build I made. For example, Version 1.4_r5 means that G2E-Vault is based on EdTheLoon's 1.4 version of G2E and this is the 5th revision I (turt2live) have done to the plugin.


    Old Files:
    Click Here for all old versions (with Vault)
    See EdTheLoon's Register-only plugin for old files before I stepped in.
     
  2. Offline

    w000rm

    Thanks for accepting my plugin request!
    Also, I get this error con any /gi command...
    PHP:
    2012-01-06 23:50:44 [SEVEREnull
    org
    .bukkit.command.CommandExceptionUnhandled exception executing command 'gi' in plugin Gold2Economy-Vault v1.4_r1
        at org
    .bukkit.command.PluginCommand.execute(PluginCommand.java:42)
        
    at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:165)
        
    at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:378)
        
    at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:757)
        
    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:93)
        
    at net.minecraft.server.NetworkListenThread.a(SourceFile:108)
        
    at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:527)
        
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:425)
        
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:457)
    Caused byjava.lang.NoClassDefFoundErrorcom/nijikokun/register/payment/Methods
        at com
    .edtheloon.gold2economy.Commands.onCommand(Commands.java:19)
        
    at org.bukkit.command.PluginCommand.execute(PluginCommand.java:40)
        ... 
    12 more
     
  3. Offline

    turt2live

    It looks like you don't have Register or Vault installed.
    Do you have either of those installed? Do you have another plugin that uses /gi?
     
  4. Offline

    md_5

    Changelog please
     
  5. Offline

    w000rm

    Vault is installed
    Code:
    2012-01-06 23:48:35 [INFO] [Vault] Enabled Version 1.2.3-b000
    And I'm not using any other plugin that uses /gi :(
     
  6. Offline

    turt2live

    "Added Vault"

    I'll look into it, it should be working though :(
     
  7. Offline

    md_5

    Approved
     
  8. Offline

    turt2live

    I added a link to the GitHub commit history anyways though, but there really isn't much to record on a Change Log.
     
  9. Offline

    Zombiemold

    Permission nodes?
     
  10. Offline

    turt2live

    Same as Gold2Economy...
     
  11. Offline

    Zombiemold

    Hmm, I only ask because. When I added the new version, no one could convert diamond or iron, despite them being on, in the config. Figured they may have changed.
     
  12. Offline

    FRLanc

    the same problem
     
  13. Offline

    turt2live

    You should only have 1 Gold2Economy JAR, either Vault (and Register) or Register only. You can't have both

    I've been trying to track it down for a while, and I can't recreate the error. May I ask how you caused the error?
     
  14. Offline

    Zombiemold

    I can only choose between Register OR Vault? Or did you mean I can't have both Gold2Economy, and Gold2Economy-Vault?

    I was only using one of those, but I am using both Vault.jar and Register.jar. Either way, I have downgraded for now, since it works, and I don't plan on changing from iConomy. If you were to say, add gold nuggets to the list of possible conversions, I might switch in the end though.
     
  15. Offline

    turt2live

    I meant kinda both, I've never tried to run Vault and Register (in fact I think they kill eachother off) but that could be an issue.

    I'll add it to my todo list to see what I can do to avoid (likely the plugin) conflicting with Register an Vault.
     
  16. Offline

    FRLanc

    /gi

    i have vault.
     
  17. Offline

    turt2live

    Alright, thank you :)
     
  18. Offline

    Zombiemold

    So far, Narrowtuxlib, Register and Vault have no problem interacting. If a plugin needs Register, it goes through register, to iConomy. If a plugin needs Vault, it goes through Vault, to iConomy. They don't really have any reason to interact together, as far as I can tell.
     
  19. Offline

    turt2live

    Yea, it was my fault... oops...
    Fixing now (no ETA)

    I updated the link, although it looks like a few economies are simply not working (looks like a Vault problem).

    Let me know if anyone comes across errors and I'll see what I can do.

    So far I've discovered MultiCurrency hates me...

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

    w000rm

    On /gi rates
    Code:
    2012-01-09 15:09:16 [SEVERE] null
    org.bukkit.command.CommandException: Unhandled exception executing command 'gi' in plugin Gold2Economy-Vault v1.4_r2
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:42)
        at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:165)
        at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:378)
        at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:757)
        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:93)
        at net.minecraft.server.NetworkListenThread.a(SourceFile:108)
        at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:527)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:425)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:457)
    Caused by: java.lang.NoClassDefFoundError: com/nijikokun/register/payment/Methods
        at com.edtheloon.gold2economy.Commands.onCommand(Commands.java:36)
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:40)
        ... 12 more
    Using Vault 1.2.3 and the newer version of Gold2Economy-Vault :L
     
  21. Offline

    turt2live

    What currency system are you using?

    Vault has a few issues with some economies... Just trying to eliminate other plugins so I can prove it's my fault. Which it is... I'll get to work on it... although that error never showed up when I tested >.<

    Updated, just uploading files to my website... Should be up in a few minutes of you seeing this (if it's not already :) )

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

    Sleaker

    Like what economies?

    @turt2live - you can run Vault & Register with no issues, they are exclusive and have nothing to do with each other.
     
  23. Offline

    turt2live

    I've mostly seen MultiCurrency fail, nothing else though.

    Yea, I realized this after I said it :/ (Fail dev is fail)

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

    Sleaker

    Fail how? pretty sure the only thing we do in vault is get the base currency for it and add money based on that. There really isn't a good way to hook multicurrency because of how it handles the money. it's a fun idea, but doesn't work well overall (my opinion)
     
  25. Offline

    turt2live

    I found when I tried to add to the balance of a player (in MultiCurrency through Vault) it would throw an NPE. Although I do agree, MultiCurrency is a good idea, it just doesn't fit well.

    Code:
    09:53:08 [SEVERE] null
    org.bukkit.command.CommandException: Unhandled exception executing command 'gi' in plugin Gold2Economy-Vault v1.4_r3
            at org.bukkit.command.PluginCommand.execute(PluginCommand.java:42)
            at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:166)
            at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:378)
            at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:757)
            at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:722)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:715)
            at org.getspout.spout.SpoutNetServerHandler.a(SpoutNetServerHandler.java:180)
            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:93)
            at org.getspout.spout.SpoutNetServerHandler.a(SpoutNetServerHandler.java:550)
            at net.minecraft.server.NetworkListenThread.a(SourceFile:108)
            at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:527)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:425)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:457)
    Caused by: java.lang.NullPointerException
            at me.ashtheking.currency.CurrencyList.setValue(CurrencyList.java:44)
            at me.ashtheking.currency.CurrencyList.add(CurrencyList.java:72)
            at me.ashtheking.currency.CurrencyList.add(CurrencyList.java:67)
            at net.milkbowl.vault.economy.plugins.Economy_MultiCurrency.depositPlayer(Economy_MultiCurrency.java:147)
            at com.edtheloon.gold2economy.VaultSupport.deposit(VaultSupport.java:58)
            at com.edtheloon.gold2economy.Converter.convertItem(Converter.java:46)
            at com.edtheloon.gold2economy.Commands.onCommand(Commands.java:111)
            at org.bukkit.command.PluginCommand.execute(PluginCommand.java:40)
            ... 14 more
     
  26. Offline

    Sleaker

    Thanks. and that looks like more of an issue with Currency not Vault. Do you have the latest Vault?
     
  27. Offline

    turt2live

    Yes I do

    I'll get to work on it *sigh*

    I really have no idea how these slip through my tests (where I try EVERY command and make sure it is production ready) with no errors then people get errors afterwards.

    Alright, I updated it.

    Complete changelog (for v1.4_r4):
    • Fixed /gi reload
    • Fixed a bug that was bound to happen eventually (on Register disable/enable)
      • Added Vault onEnable/Disable
    • Fixed a configuration persistence error
    • Fixed a configuration not loading correctly
      • If anyone can fix the code I'm not really proud of you can see it here
        • It is supposed to load the config for the plugin, but plugin.getConfig(); doesn't work right :(
        • This code will not ruin functionality of the plugin, I just don't like it
    • Broke the API, badly
      • Yea, sorry, I kinda hit it with a truck then smashed it with a hammer after I finished fixing the configHandler...
        • I'm working on fixing it though.

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

    killertrupp1

    I canĀ“t dowload the Gold2Economy Vault Edition the site need a Username and a password please help.
     
  29. Offline

    turt2live

    The issue should be fixed now, sorry about that.
     
  30. Offline

    Mercury

    Code:
    2012-01-25 22:12:55 [INFO] [Gold2Economy] Loading Gold2Economy v1.4.
    2012-01-25 22:12:55 [INFO] [Gold2Economy] configHandler loaded these rates: Iron: 9.99,  Gold: 29.99 and Diamond: 99.99
    2012-01-25 22:12:55 [SEVERE] Error occurred while enabling Gold2Economy v1.4 (Is it up to date?): com/nijikokun/register/payment/Methods
    java.lang.NoClassDefFoundError: com/nijikokun/register/payment/Methods
        at com.edtheloon.gold2economy.configHandler.loadConfig(configHandler.java:108)
        at com.edtheloon.gold2economy.gold2economy.onEnable(gold2economy.java:46)
        at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:231)
        at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:1057)
        at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:379)
        at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:191)
        at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:174)
        at net.minecraft.server.MinecraftServer.t(MinecraftServer.java:356)
        at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:343)
        at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:175)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:407)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:465)
    Caused by: java.lang.ClassNotFoundException: com.nijikokun.register.payment.Methods
        at java.net.URLClassLoader$1.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(Unknown Source)
        at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:41)
        at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:29)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        ... 12 more
    I am running latest Bukkit RB and iConomy 6.0.7
     

Share This Page