[INACTIVE][ECON] iAuction v2.5 - auctions for iConomy [440]

Discussion in 'Inactive/Unsupported Plugins' started by Zaraza107, Jan 29, 2011.

  1. Offline

    Zaraza107

    iAuction
    Version: v2.5​

    This is an auctioning plugin for iConomy v4.0 "Kristen". For list of commands use /auction help or /auction ?
    iConomy is required for proper working.
    Permissions and GroupManager plugins are not obligatory.

    Download v2.5 (source included)
    Older versions:
    Show Spoiler


    GitHub

    Commands:
    • /auction help|? - help message
    • /auction start|s <time> <item> <amount> <price> - starts and auction for amount of <time> with <amount> of <item> for <price>.
      NOTE: <item> can be either item's id or name compatible with Bukkit.
    • /auction bid|b <bid> (secret bid) - bids auction with <bid>, if [secret bid] is set and <bid> is greater than current bid, it will automatically bid up when new bid is lower than (secret bid)
    • /auction end|e - ends auction before time's up
      NOTE: only the player who started the auction and Op can end an auction
    • /auction info|i - shows information about current auction
    Installation:
    Put iAuction.jar into plugins folder. After first load it will create iAuction folder in plugins and a configuration file.
    If maximal-time is set to 0 (default), it will be ignored.
    Every color configuration has string value which have to be one of ChatColor colors (below)
    Code:
    black, dark_blue, dark_green, dark_aqua, dark_red, dark_purple, gold, gray, dark_gray, blue, green, aqua, red, light_purple, yellow, white
    permission-system - "permissions" or "groupmanager" (not case sensitive) any other will set permissions system off

    Permissions:
    Code:
    'auction.start' - permission to start an auction
    'auction.bid' - permission to bid an auction
    'auction.end' - override of auction ending for someone who is not Op or auction owner (for example for moderators)
    Changelog:
    Show Spoiler
    Version 1.0
    • first release
    Version 2.0
    • used Nijikokun's fixed version of v1.0, also:
    • changed command handler to onCommand()
    • fixed Permissions support
    • fixed items duplicating bug
    • fixed damaged tool repair (only fully repaired tools can be auctioned)
    • nicer colors :)
    • hopefully, null currency fixed
    Version 2.1
    • added settings for colors and maximal time
    • NumberFormatException in auction bidding fix
    Version 2.2
    • bidding now checks if someone has enough balance
    • namespace fix
    Version 2.3 beta
    • removed constructor
    • some optimization
    • HeroChat support
    • permissions nodes separation
    • invalid item name bug fix
    Version 2.4
    • auction.bid permission node fix
    • update for MC Beta 1.3 (CraftBukkit #432)
    Version 2.5
    • iConomy 4.0 update
    • Permissions 2.3 update
    • GroupManager support added
    • currency does not have to be integer anymore (thanks to iConomy)
    • minor fixes (mostly visual)


    Known Bugs:
    • Op trying to auction kills the server (not always)
    • Disconnected player won't get items
     
    GermanyMember likes this.
  2. Offline

    pudd1nG

    Any chance of an item damage fix? Would love to use this but letting people have free tools makes me sad :(
     
  3. Offline

    Stephen92

    can you type it out please like the exact command ingame
     
  4. Offline

    Zaraza107

    For one stone:
    /auction start 20 1 1 5
    OR
    /auction -s 20 1 1 5

    Both do the same.
     
  5. Offline

    Stephen92

    ty for the reply but neither work for me idk why but oh well thanks though.
     
  6. Offline

    Nathan C

    Thank you!

    Your version runs great, looks cleaner and there is no errors.
     
  7. Offline

    MIKUiqnw0

    No dice, still getting the same error when trying to end auction.
     
  8. works for me #197
     
  9. Offline

    MIKUiqnw0

    If it's the one in OP, I've got no issues either apart from not having item.db support.
    It's probably just sporting the old hooks at the moment, i'm on build #231.

    Edit: 246 now.
     
  10. Offline

    Speedy2662

    when someone types /auction bid 30 (for example) nothing happens. whyy?
     
  11. Offline

    Nijikokun

    Need more information as to why things don't work, and what exact errors you are having
     
  12. I don't know if someone has already reported about this bug/glitch, but I'd like to see this being fixed so I can return this plugin back to my server so the players wont be exploiting this bug.

    When you do, for example /auciton start 30 264 1 500 , which starts an auction with 1 diamond.
    And then another player does /auction start 30 264 64 , which starts an auciton with 64 diamonds.

    The second auction wont start of course, because theres already an auction, but when the 1st auction ends, the player who wrote the 2nd auction will get 64 diamonds even if he had only few and the player who auctioned his 1 diamond gets nothing.

    I hope I was able to describe this bug/glitch good enough so its possible to be fixed. I can try explain it better as if you don't get the problem.
     
  13. Offline

    MIKUiqnw0

    CB Build #246, You start any auction and attempt to end it with /auction -e or /auction end.
    The command fails and the console outputs:
    Code:
    Feb 6, 2011 9:30:58 AM org.bukkit.plugin.SimplePluginManager callEvent
    SEVERE: Could not pass event PLAYER_COMMAND to iAuction
    java.lang.NullPointerException
            at com.bukkit.Zaraza107.iAuction.iAuctionPlayerListener.onPlayerCommand(iAuctionPlayerListener.java:120)
            at org.bukkit.plugin.java.JavaPluginLoader$3.execute(JavaPluginLoader.java:133)
            at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:60)
            at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:213)
            at net.minecraft.server.NetServerHandler.c(NetServerHandler.java:590)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:563)
            at net.minecraft.server.Packet3Chat.a(SourceFile:24)
            at net.minecraft.server.NetworkManager.a(SourceFile:232)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:71)
            at net.minecraft.server.NetworkListenThread.a(SourceFile:104)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:283)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:209)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:512)
    2011-02-06 09:30:58 [INFO] MIKUiqnw0 issued server command: auction end
    2011-02-06 09:30:58 [INFO] Unknown console command. Type "help" for help.
    
     
  14. Offline

    trivials

    Its possible to start more auction at the same time or only one.
     
  15. Offline

    Mercury

    [Suggestions]
    • Max-Time - Make configurable max-time or some players will make auction for e.g 100000000000 seconds. (3 168.87646 years). Sounds funny :D
    • Change "null" to iConomy currency name.
     
  16. Offline

    Zaraza107

    Released version 2.0. See original post for changes.

    I'm sorry you had to wait, a little time + Nijikokun's changes made it harder to change code for few days.
     
  17. Offline

    axebyte

    tried the new version.
    Soon as anyone does, /auction start ******* the server freezes and crashes.
    there is no errors in the console, other then seeing everyone get kicked out of the server.
    Really looking forward to this working. (am on the same craftbukkit as WG is presently up to)
    I wish i could help more, but without any errors generating just a freeze to crash i cant really assist more.
     
  18. Offline

    Orcworm


    This is the error I get in the console when this occurs, same problem:

    [WARNING] Failed to handle packed: java.lang.NullPointerException
     
  19. Offline

    axebyte

    nice atleast you where able to see the error. :D
     
  20. Offline

    Zaraza107

    @axebyte @Orcworm looking into this. What are your Craftbukkit versions?
     
  21. Offline

    axebyte

    I am on Bukkit build 232 <-- i normally try and stay with WorldGuard, i found if they update to it , its normally a decently stable version.

    If your set for a higher build i suppose i can try it, no point in downgrading. let me update to the one i just noticed you where set for lol.

    no go version 258 same deal just freeze crash server.
     
  22. Offline

    Zaraza107

    Just tried 232 and problem didn't occur. I love those bugs that don't appear everywhere. Sending you PM :)
    --- merged: Feb 6, 2011 9:03 PM ---
    Ok so this is what I managed to discover thanks to @axebyte:
    Being an Op and trying to auction (start, bid) kills the server. I have yet no idea what causes that.
     
  23. Offline

    axebyte

    Glad to help, thanks for getting my server one step closer to pre Hmod death. :D

    now thats it working suggestions!
    1:add in where when someone bids 10 secs is added to the auction timer, (stops the last moment bidding that could hamper some of the more laggy servers)
    2:slap in a config so we can alter colors to each servers liking
    3:put a cap on the length an auction can go, like max 10 minutes, so we dont have like you seen, /auction start 999999999 :D
     
  24. Offline

    GermanyMember

    1. A person not having money can buy, the balance is -
    2. A person with eBay item lost after logout
    3. Set a time limit
    4.
    2011-02-07 10:31:09 [WARNING] Failed to handle packet: java.lang.NumberFormatEx
    eption: For input string: "nick"
    java.lang.NumberFormatException: For input string: "nick"
    at java.lang.NumberFormatException.forInputString(Unknown Source)
    at java.lang.Integer.parseInt(Unknown Source)
    at java.lang.Integer.parseInt(Unknown Source)
    at com.bukkit.Zaraza107.iAuction.iAuction.auctionBid(iAuction.java:453)
    at com.bukkit.Zaraza107.iAuction.iAuction.onCommand(iAuction.java:183)
    at org.bukkit.command.PluginCommand.execute(PluginCommand.java:17)
    at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:7
    )
    at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:
    57)
    at net.minecraft.server.NetServerHandler.c(NetServerHandler.java:595)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:574)
    at net.minecraft.server.Packet3Chat.a(SourceFile:24)
    at net.minecraft.server.NetworkManager.a(SourceFile:232)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:71)
    at net.minecraft.server.NetworkListenThread.a(SourceFile:104)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:283)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:209)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:512)

    And loggout player + lost item ;/
     
  25. Offline

    Zaraza107

    @GermanyMember
    1. Impossible, or iConomy is not sending a "0" integer for empty balance.
    2. Will try to find a way to help with this.
    3. Will do.
    4. Was only the player trying to auction kicked out or whole server. Also, now i know that I forgot to catch exceptions in auction bidding.
     
  26. Offline

    GermanyMember

    1. I have screen with balance on -...
    2. Thanks :)
    3. Thanks :)
    4. so it happens when you type an incorrect command. You can fix it?
     
  27. Offline

    Zaraza107

    Will investigate 1 and 4 is already fixed - adding properties and will release that.
    It happened because someone added a letter to amount or secret amount of bid. Sorry for that stupid bug.
    --- merged: Feb 7, 2011 4:30 PM ---
    Version 2.1 released. See original post for information.
     
  28. Offline

    GermanyMember

    Ok, very very thanks, you plugin is pr0 ;**
    Aa... Limit time on auction ok :)?
     
  29. Offline

    MiniKahn

    I have a problem...

    User X /auction bid 500 1000
    bid is 500 and secret with 1000
    User Y type /auction bid 501 1200
    current bid is 501 a second later 502....
    And what is with User Y secret bid?
    It fails...
    When the system is like Ebay the bid went up to 1001... but ... it fails :D

    Sry for my bad english!
    iAuction 2.1
    IConomy 2.2
    Craftbukkit 266
     
  30. Offline

    Zaraza107

    No probs. And time limit is coded in version 2.1. Check original post.

    It's actually intended. I did write that your bid have to outbid someone to make secret bid work.
     
  31. Offline

    MiniKahn

    ah okay :D
    I have think the System is like ebay ^^
     

Share This Page