[MISC] SimpleGive v1.2 - Giving Items + Permissions + Custom Values [818]

Discussion in 'Inactive/Unsupported Plugins' started by captainawesome7, May 6, 2011.

  1. Offline


    SimpleGive v1.2 - Give people Stuff!
    SimpleGive is a basic /i and /give. It uses permissions and a txt file where you can define your own item names.
    Commands <necessary> [optional]:
    /give <playername> <itemname/id> [amount] [durability] - Gives an item stack to a player
    /i <itemname/id> [amount] [durability] - Gives an item stack to yourself
    Permissions Nodes:
    simplegive.give - Allows you to use /give
    simplegive.item - Allows you to use /i
    simplegive.item.id (replace id with the item id that they are allowed to give, * gives them all)
    simplegive.give.id (replace id with the item id that they are allowed to give, * gives them all)

    • It makes a file at /plugins/SimpleGive/Items.txt
    • The file contains itemnames=idnumbers
    • To define your own item names, just format it like this:
    • stone=1
    • When you type /i stone, it will give you 64 of 1, which is stone :)
    • Give items to people!
    • Give items to yourself!
    • Permissions!
    • Item Specific Permission Nodes!
    • Custom item names!
    • Give colored wool!
    • Console Support!
    wool (open)

    Use this image. Type /i wool 64 c
    Replacing c with the light gray number to the bottom left of the 35 above the colored wool.
    For dye, type /i dye 64 c
    Replacing c with the light gray number to the bottom left of the 351 above dye

    Planned Changes:
    • Add config value for the in game confirmation message
    Version 1.2
    • Added item specific permission nodes,
    • simplegive.give.id
    • simplegive.item.id
    Version 1.1
    • Fixed console usage.
    Version 1.0
    • Release!
    [​IMG] To me to support my plugins :)
    Video of this plugn in action here :)


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


    Thank you for the speedy reply :D

    Any word on the error cause in the server console for an empty /i command?

    -Edit Well preventing it from coming up or replacing it with the help info like /i <id> <amt> for noobs
  3. Offline


    Think you could post a Source for this? I'm still new and was wondering if I could just look over yours and.. well learn :)
  4. Offline


    In the .jar
  5. Offline


    Was just about to 'Edit: Never mind, found it in the .jar'
    xD Thank you though! I hope to learn a lot from this ;)
  6. Offline


    the special data values don't appear to work with tall grass or leaves
  7. Offline


    They do. The game just makes it so you can't place tall grass apparently. The values are definitely set, there is no exception for grass and leaves.
  8. Offline


    Got some error:
    2011-06-19 18:43:32 [SEVERE] null
    org.bukkit.command.CommandException: Unhandled exception executing command 'i' in plugin SimpleGive v1.2
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:37)
        at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:128)
        at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:287)
        at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:712)
        at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:678)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:671)
        at net.minecraft.server.Packet3Chat.a(Packet3Chat.java:32)
        at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:75)
        at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:399)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:309)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    Caused by: java.lang.ArrayIndexOutOfBoundsException: 0
        at me.captain.SimpleGive.SimpleGive.onCommand(SimpleGive.java:237)
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35)
        ... 12 more
  9. Offline


    Ugh fine I'll add the error catching that tells you that there is no item with that name :p
  10. Offline


    yeah, i tried furance, furnance, and nothing happens^^ what is the right word for it?
  11. Offline


    re-download for fix

    Dude, the items.txt is in your plugins/SimpleGive folder, edit it yourself!

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


    I'm a fool... furnace is the right one >.< everytime the same with that item^^ but thanks alot :)
    Can I rename any Item? for example, i write... chucknorris=1 and he gives me when i type in /i chucknorris 10, 10 stone?
  13. Offline


  14. Offline


    Nice one! Keep on your good work guy :)
  15. Offline


    i did everything right but it keeps saying i dont have permission is there anything i need to download or change in the file. Please help. I also tried ur simplegod plugin it said the same thing i dont have permission
  16. Offline


    Then u didn't set up permissions right lol
  17. Offline


    i know how do i set up permissions right wut folder do i open
  18. Offline


    Not helping u with that
  19. Offline


    y not??
  20. Offline


    Permissions is easy. Go ask for help somewhere else.
  21. Offline


    just lol...

    but anyways, I have not seen a post about the current build, so I am assuming it works with 953? (working on updating everything and reading each plugins post, but will post back if it is working fine)
  22. Offline


    This happens every time I try to use it.(both commands)
    Server info.
    Show Spoiler
  23. Offline


    If there any way to set a custom item name with a damage value?

    for example:


    where 0, 1, 2 etc is the damage value? Giving wool is just the main concern, as well as types of steps and other damage value dependant items. It's just a bit easier than typing "/i itemname itemnumber damagevalue" every time.

    EDIT: Also I just want to complement you on A) including source code, and B) making it INCREDIBLY clear and easy to follow. I'm not good with Java, but your comments are very helpful. If I can find out how to edit it myself to answer the above question I will mention it here, but I don't have much Java experience so I'm not sure how it will go.
    Justin The Cynical likes this.
  24. Offline


    plsssssss update this, my server relies on this plugin, it is a fantastic plugin and i cant find any others like it.
  25. Offline


    Add a configuration for default stack size. I don't like the default as 64.
  26. Offline


    I'm working on a plugin similar to this myself as I also require it. I'll let you know when it's done.
  27. Offline


    @ captainawesome7 can you add a NOT allowed node? loke something like this
    darkharasho likes this.
  28. Offline


    Just put this in permissions:

    - 'simplegive.item.*'
    - -'simplegive.item.[ID HERE]'

    That will allow you to use everything except the banned item

    Reporting a bug:

    When you try to give an item to a player who isn't on the server, the plugin still prints "That item doesn't exist!".

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


    'simplegive.item.[ID HERE] <--this will be the baned item?
  30. Offline



    simplegive.item.[ID HERE] allows the person with that command to ONLY give [ID HERE].

    If a player had the node:
    simplegive.item.323 they would only be allowed to give the item with the ID 323.

    At least that is what I got out of reading the first post ;)
  31. Offline


    You both misunderstood me
    - 'simplegive.item.*' - This line gives the user permission to use all items
    - -'simplegive.item.ID' - This line TAKES AWAY the permission to use the item with id "ID". Hence the extra "-".

    For instance:
    - 'simplegive.item.*'
    - -'simplegive.item.7'
    Will make it so that your members can give themselves anything except id 7 (Bedrock).

Share This Page