[GEN] OddGive 0.9.1 - Item giving (and taking) [1.2.5-R1.0]

Discussion in 'Inactive/Unsupported Plugins' started by petteyg359, Feb 16, 2011.

  1. Offline

    petteyg359

    See OddGive on dev.bukkit.org.

    A not-so-basic /give plugin. Uses OddItem.

    /give command accepts multiple player names and multiple items with optional quantities
    /give command is restricted to giving items to others
    /i command accepts multiple items with optional quantities
    /i command is restricted to giving items to self
    /i0 command allows clearing inventories of self or other players (depending on permissions) - accepts multiple items and quantities, or no item parameters to clear inventory completely

    See OddGive on dev.bukkit.org.
     
    MasterMeNL and ne0nx3r0 like this.
  2. Offline

    petteyg359

    Have you tried removing scrapbukkit? You can use Tele++ for teleporting and TimeShift for time.
     
  3. Offline

    MasterMeNL

    WTF, I just tried that and it actually worked?
    Man this is such a fail, I removed scrapbukkit and now it all works, I still have chatbukkit, should I also remove that to prevent further conflicts?
    Thanks a lot man this is so awesome!
     
  4. Offline

    petteyg359

    I doubt chatbukkit would break anything unless I write a chat plugin :) Scrapbukkit's /give was apparently overriding mine, though.
     
  5. Offline

    petteyg359

    0.8.1 uploaded, fixes /i0 for items with data values.
     
  6. I'm experiencing some problems with /give player item quantity
    I have the 'odd.give.give' permission, but I can't give items to other users unless I omit the quantity!
    /give jaimelive dirt works but /give jaimelive dirt 64 won't do anything...
    Are there any know issues or conflicts? Anyone else experiencing this problem?
     
  7. Offline

    petteyg359

    I'm redoing the /give command to work similarly to /i0 (so you can give multiple items with or without quantities to multiple players). Should be done soon.

    0.8.2 uploaded. Adds support for multiple players and items to /give and multiple items to /i:

    /i sandstone 38 glass 16 wdoor 1
    /give Jimbo Freddie wood lighter 1 log
    /give * dirt 14 glass 9 wdoor 1

    Quantity after item is optional. If no quantity is given, it will use the default set in give.txt.

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

    petteyg359

    Uploaded 0.8.3, fixes minor bug (invalid items were automatically giving the closest matched item instead of sending a message).
     
  9. Offline

    dirkson

    Download URL appears down right now.
     
  10. Offline

    petteyg359

    Oops. Rebooted my server and forgot to add an IP address, so nginx decided to not start. It's fixed now :)
     
  11. Offline

    i ThRoW sToNeZx

    :(
    Is it not compatible with TooManyItems? Because, whenever I give myself an item with TooManyItems, it doesn't show up, unless I leave and join the server again
     
  12. Offline

    ItsMeYaniv

    why there is no durability?
    i want give black wool and its dosent work!
     
  13. Offline

    petteyg359

    There is, and it does.
     
  14. Offline

    ItsMeYaniv

    so how i use this?
     
  15. Offline

    petteyg359

    Get OddItem. Set up plugins/Odd/item.txt.
     
  16. Offline

    ItsMeYaniv

    oh thank you, now its work like magic :D
     
  17. Offline

    Reazem

    Just the pluggin I needed. I need my users to loose thier items when they enter in a specific building.
    I will use Pressurre plates that trigger /i0.
    FANTASTIC !! ;D
     
  18. Offline

    MasterMeNL

    I'm getting an error when I type "/i0 [name]" (e.g. /i0 MasterMeNL).
    Typing "/i0 [name] *" does work, but I thought typing only player names also worked?
    I attached 2 images with my bukkit version and plugins and the error is below here.
    Code:
    2011-07-18 12:29:43 [SEVERE] null
    org.bukkit.command.CommandException: Unhandled exception executing command 'i0' in plugin OddGive v0.8.3
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:37)
        at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:129)
        at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:298)
        at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:711)
        at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:676)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:669)
        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:84)
        at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:451)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:361)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    Caused by: java.lang.ArrayIndexOutOfBoundsException: 1
        at info.somethingodd.bukkit.OddGive.OddGive.take(OddGive.java:109)
        at info.somethingodd.bukkit.OddGive.OddGive.onCommand(OddGive.java:169)
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35)
        ... 12 more
    BukkitPlugins.png BukkitVersion.png
     
  19. Offline

    petteyg359

    Fixed in 0.8.4.
     
  20. Offline

    MasterMeNL

    Running OddGive 0.8.4 and OddItem 0.6.5 and I still get the (same?) error when trying /i0 [playername] with nothing else.
    Same list of plugins except BukkitContrib was added (auto-downloaded for me, couldn't remove it?).
    Code:
    2011-07-18 22:03:42 [SEVERE] null
    org.bukkit.command.CommandException: Unhandled exception executing command 'i0' in plugin OddGive v0.8.4
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:37)
        at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:129)
        at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:320)
        at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:713)
        at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:677)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:670)
        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:85)
        at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:451)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:361)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    Caused by: java.lang.ArrayIndexOutOfBoundsException: 1
        at info.somethingodd.bukkit.OddGive.OddGive.take(OddGive.java:109)
        at info.somethingodd.bukkit.OddGive.OddGive.onCommand(OddGive.java:169)
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35)
        ... 12 more
    Also, I'm quite suprised this plugin doesn't get a lot of comments, I really love this (even though typing out the items.txt was a shitty work the first time I used this it's a very good extra).
    I attached a items.txt with a lot of alternatives and all leaves, sapling, etc.
    It's for the 1.7.* with pistons and shears included, feel free to put it in the main post here or in odditem.
    I shall try to keep it updated and keep posting it here.

    Also, my blacklist doesn't seem to work (give.txt is the name), is something wrong with this?
    I also tried it using item ID's but that didn't work either.
    Code:
    # You can put anything you want in this file. It will only parse lines beginning
    # with "type:" "items:" or "quantity:". If you put multiple "type:" lines, the last
    # such line in the file will be the one that counts. The same applies for "quantity:".
    # For "items:", you may have as many lines as you want and they will all be read.
    # You may add comments however you want, as long as they don't start with the
    # three significant words (I use # because I'm used to it, but I could just leave it off
    # like these lines :) Don't put any comments on the same line as the actual
    # configuration options.
    type: blacklist
    items: tnt
    items: lavabucket
    items: lava
    items: bedrock
    items: obsidian
    items: fire
    items: flintandsteel
    items: dispenser
    items: egg
    items: spawner
    items: map
    quantity: 1
    # This would blacklist only lava (items by any other name could be obtained by
    # anyone with odd.give.i or odd.give.give permissions). If '/i dirt' is typed without
    # a quantity, they'll get a stack of 20 dirt. Only ops and anyone with permission
    # odd.give.override could get lava.
    # This would whitelist furnance, sand, and wood. Any other items could only be
    # obtained by ops or permission odd.give.override, and the stack size for a command
    # that doesn't specify quantity would be 8.
    Greetings,
    MasterMe.

    EDIT: Removed items.txt since I updated it, will post it soon.
     
  21. Offline

    petteyg359

    Well, I thought I fixed it... I must've been confused. Back to the code... :p

    EDIT: Ah. I fixed the bug you hadn't gotten to yet because the current bug was happening first :) Will upload another momentarily.

    EDIT2: *another version, not another bug, hopefully

    EDIT3: Download it again.
     
  22. Offline

    MasterMeNL

    Will test this one and report back tomorrow, also, is my give.txt blacklist correct?
    I also posted a item.txt in the other thread which I will maintain.

    Greetings,
    MasterMe.
     
  23. Offline

    MasterMeNL

    The /i0 [name] works now, but my blacklist still doesn't work, could you tell me if there is anything wrong with it?

    Greetings,
    MasterMe.
     
  24. Offline

    petteyg359

    @MasterMeNL: Try this. I've added a command "/og list". Give me the output :)
     
  25. Offline

    Hex

    It says "Unknown console command"
     
  26. Offline

    petteyg359

    Oops. Try again now, even though you are not MasterMeNL...
     
  27. Offline

    MasterMeNL

    Here is the output: Oddgive_List.png
    my give.txt is the same as some posts ago where I inserted it using code tags.

    Greetings,
    MasterMe.
     
  28. Offline

    petteyg359

    Make sure you're not op and/or you don't have odd.give.override permission.
     
  29. Offline

    MasterMeNL

    Remove the permission rights, pr -reload all.
    Type in console: deop mastermenl
    "You are no longer OP".
    I type /i tnt, and get a tnt.
    Also my other members who don't have the override function can also cheat tnt and other blacklisted items (WorldGuard prevents them from using it though xP).

    Greetings,
    MasterMe.
     
  30. Offline

    petteyg359

  31. Offline

    MasterMeNL

Share This Page