[UNSUPPORTED][ECON] CodeRedEconomy v0.8.0 (RedStrype Econ) [320]

Discussion in 'Inactive/Unsupported Plugins' started by Vandolis, Jan 20, 2011.

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

    Vandolis

    First off let me say that I only made this plugin because I was bored and wanted some more practice programming. I made it for the server I play on, RedStrype, and it was built with only the features the servers admins wanted. I am posting it to get feedback on it, and maybe it will be better suited for what you want than some of the more established (and more functional) economies such as iConomy.

    Also please note that this economy is not for everyone, as most people will probably want one that is more full featured, but I plan on keeping this one small.

    Also if you are starting to write plugins please feel free to look through my code. I'm still a novice myself, but it might be able to help somehow :D

    So to sum up this economy in one word: Simple

    All your users need to learn are 6 easy commands.

    /buy, /sell, /balance, /pay, /undo, /prices

    Thats it.

    Syntax for these are:
    /buy [item name] [amount] or /buy [amount] [item name]
    /sell [item name] [amount] or /sell [amount] [item name]
    /balance
    /pay [player name] [amount]
    /undo
    /prices [page]

    Full info is in the readme which, if you just want to check out more about the plugin, is available for download. This includes (poorly written) situations that display how the plugin behaves, as well as an explanation on how to set it up.

    ***NOTE***
    Right now the plugin only uses flatfile (/plugins/CodeRedEconomy/), but I am in the process of adding SQLite support, so forgive me.

    Also please note that this is still in heavy development, and is really just an ongoing experiment. There is about a 100% chance that there are still bugs in it, but if you are worried about bugs than you shouldn't even be using bukkit right now ;)


    Download:
    <Edit by Moderator: Redacted mediafire url>
    Source
    <Edit by Moderator: Redacted mediafire url>
    Example Stats File

    Changelog:
    v0.8.0: Fixed bugs, most of the SQL code is in there, although its not for use yet.


    v0.0.0->v0.7.1: Work on first release.
     
    Last edited by a moderator: Dec 15, 2016
    spoonikle likes this.
  2. Offline

    mrgreaper

    does this link into iconemy? or an entirely seperate plugin?
     
    coolguy32 likes this.
  3. Offline

    Vandolis

    Entirely separate although having it read values from iConomy when it is first ran would not be a bad idea.
     
  4. Offline

    Nate204

    I'm willing to give it a go! I'll upload it to my server and try it tonight.
    Any Idea of putting in user based shops?
     
  5. Offline

    iSushi

    Seems interesting, I'll look at the source later, if I get time I might give some feedback as well :)
     
  6. Offline

    LiLSavior

    put the .jar in my plugins folder started server and got this
    SEVERE: Could not load plugins/CodeRedEconomy.jar in plugins: null
    org.bukkit.plugin.InvalidPluginException
    at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:69)
    at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:115)
    at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:80)
    at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:37)
    at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:153)
    at net.minecraft.server.MinecraftServer.c(MinecraftServer.java:140)
    at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:104)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:177)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:512)
    Caused by: java.util.zip.ZipException: error in opening zip file
    at java.util.zip.ZipFile.open(Native Method)
    at java.util.zip.ZipFile.<init>(ZipFile.java:131)
    at java.util.jar.JarFile.<init>(JarFile.java:150)
    at java.util.jar.JarFile.<init>(JarFile.java:114)
    at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:56)
    ... 8 more
     
  7. Offline

    Archelaus

    Mind implementing inter-plugin communication? For use in other plugins.
     
  8. Offline

    Lachlan Brooks

    Seems like an awesome plugin, but after filling in all the shop prices in items.txt, I get this error in the console:

    Code:
    Loading CodeRedEconomy...
    Reading properties file...
    Reading Users File...
    Reading Groups File...
    Reading Stats File...
    Reading Shops File...
    21/01/2011 8:58:40 AM org.bukkit.craftbukkit.CraftServer loadPlugins
    SEVERE: For input string: "false" (Is it up to date?)
    java.lang.NumberFormatException: For input string: "false"
            at java.lang.NumberFormatException.forInputString(Unknown Source)
            at java.lang.Integer.parseInt(Unknown Source)
            at java.lang.Integer.valueOf(Unknown Source)
            at bukkit.Vandolis.Shop.load(Shop.java:188)
            at bukkit.Vandolis.Shop.<init>(Shop.java:60)
            at bukkit.Vandolis.DataManager.readShopFile(DataManager.java:817)
            at bukkit.Vandolis.DataManager.load(DataManager.java:579)
            at bukkit.Vandolis.CodeRedEconomy.onEnable(CodeRedEconomy.java:49)
            at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:135)
            at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader
    .java:285)
            at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManage
    r.java:175)
            at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:60)
            at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:45)
            at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:153)
            at net.minecraft.server.MinecraftServer.c(MinecraftServer.java:140)
            at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:104)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:177)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:512)
    2011-01-21 08:58:40 [INFO] Done! For help, type "help" or "?"
    
    This is running on CraftBukkit 106, so I'm probably being stupid and have messed something up in the config files/need to update to CraftBukkit 114. In the unlikely circumstances that this is an actual bug, and not caused by my general suckishness with configuring files, I'll upload my config files for the plugin if you need them :)
    Luneix
     
  9. Offline

    TurtlePatrol

    Sounds extremely simple, nice work :D
    I like how there are separate commands for buying, selling and prices!
    I'm gonna keep an eye on this one and test it out.
     
  10. Offline

    Abecbu

    Im going to try this out. iConomy doesn't have buy and sell yet :)
     
  11. Offline

    Starrk

    Looks good! I'll be using this for substitution of iConomy. (Yes I made another iConomy reference.)
     
  12. Offline

    andersma

    This is the only thing loading on my server anymore. Does anyone know why? I'm getting a similar message to Lachian as well.
     
  13. Offline

    Nijikokun

    iConomy never will have buy / sell. iConomy is solely for money only. So yeah, him using iConomy as a money option would be a good option :p
     
  14. Offline

    Starrk

    Hey could someone give me a balanced buying/selling list?
     
  15. Offline

    Nate204

    I LOVE iConomy with iShop and iTrade. Worked out perfect for me before. I can't wait for them on bukkit though..... I miss my shops
     
  16. Offline

    Abecbu

    Oh I never realized they were separate. Silly me :p
     
  17. Offline

    GGreenBass

    Ah! Me like, me like!

    Just one question: Can you sell and buy at different prices (like in almost every rpg ever)? Or maybe implement that feature? love this mod besides.
     
  18. Offline

    Vandolis

    Hey guys, thanks for the feedback. To those that were having trouble with it if you could post the related file I can take a look.

    And GGreenBass you can set different buy/sell values in the item file. Not sure if I heard you correctly though.
     
  19. Offline

    Nate204

    going to test this now.
     
  20. Offline

    Abecbu

    I looked through the read me but what is the 60000? seconds?
     
  21. Offline

    Vandolis

    The time is in server time, which off the top of my head is something like 20 = 1 second
     
  22. Offline

    mrgreaper

    any chance you can implement the currency name? its the thing we love about iconomy. the players are enjoying earning chicken lips at mo

    well the fact we use a plugin that gives us 5 days to every 1 night effect the auto deposite?

    to have it add one chicken lip every 5 minutes what would we set the time to ?is 60000 right or am i getting the maths wrong ?
     
  23. Offline

    Nate204

    Loading CodeRedEconomy...
    Reading properties file...
    Jan 20, 2011 9:46:17 PM org.bukkit.craftbukkit.CraftServer loadPlugins
    SEVERE: For input string: "" (Is it up to date?)
    java.lang.NumberFormatException: For input string: ""
    at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
    at java.lang.Integer.parseInt(Integer.java:493)
    at java.lang.Integer.valueOf(Integer.java:570)
    at bukkit.Vandolis.ShopItem.<init>(ShopItem.java:93)
    at bukkit.Vandolis.DataManager.readItemFile(DataManager.java:641)
    at bukkit.Vandolis.DataManager.load(DataManager.java:567)
    at bukkit.Vandolis.CodeRedEconomy.onEnable(CodeRedEconomy.java:49)
    at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:135)
    at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:285)
    at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:175)
    at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:60)
    at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:45)
    at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:153)
    at net.minecraft.server.MinecraftServer.c(MinecraftServer.java:140)
    at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:104)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:177)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:512)

    Bukkit:66
    Cbukkit:114
    Time: On Server Load
     
  24. Offline

    Abecbu

    That seems so random to me...

    data.properties has a setting for name.

    I also have the days plugin. It's called extendedday I believe. Will that goof us?
     
  25. Offline

    kipu

    When I install it in my server it runs perfectly fine, but it blocks all of my other plugins. I got major griefed today because GuestBook wasn't on. If anyone could help me with this issue, it would be much appreciated.
     
  26. Offline

    highwisdom

    Plugin seems very nice!

    Unfortunately I've not been able to make it work. CBukkit built 85 and 114 tested.

    First tried hotswapping loading it in while running server. This kicked me out of the server with 'Internal error'.

    Restarted the server. but I get an error on loading now:

    For input strong: "torch" (is it up to date?)
    java.lang.numberformexception: for unput string: "torch"

    nonetheless, commands respond now, but even if there is a line in the items.txt (ex: "torch:64:64:64:64:64:64") I get an error:

    /prices - "no items to buy"
    /buy torch 1 - "the right format is blah blah"

    however /balance works properly ;)

    even more alarming is that with CodeRedEconomy enabled on a fresh restart, all other plugin commands cease to function :(
     
  27. Offline

    Abecbu

    Build 114

    and I zipped the whole config folder
     

    Attached Files:

  28. Offline

    TurtlePatrol

    Does this plug-in support decimals? I haven't tested it yet.
     
  29. Offline

    spoonikle

    so this implements a global shop and allows players to make payments to each other? sweet! can you add a salary feature that uses group data, or user data?
     
  30. Offline

    webdevbrian

    Thanks again for this Van, our community is absolutely grateful for your effort. We'll have it on the RedStrype community this weekend!
     
Thread Status:
Not open for further replies.

Share This Page