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

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

  1. Offline

    captainawesome7

    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)

    Configuration:
    • 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 :)
    Features:
    • Give items to people!
    • Give items to yourself!
    • Permissions!
    • Item Specific Permission Nodes!
    • Custom item names!
    • Give colored wool!
    • Console Support!
    Wool:
    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
    [​IMG]

    Downloads:
    Planned Changes:
    • Add config value for the in game confirmation message
    Changelog:
    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 :)

    @lordkalem
    YOU ARE A RETARD!!!
    IT IS OPTIONAL GEESUS CHRIST

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

    captainawesome7

    @RTRD Its basically the same, the txt file would have been a property file including whatever item you want to blacklist, and permissions you can just give them .*, but take away certain ones, it isn't that hard.
     
  3. Offline

    RTRD

    What? :/
     
  4. Offline

    captainawesome7

    @RTRD Ok. In your permissions world file, you can give a player the simplegive.item node, which will let him use /i but every time he does it says You don't have permission to give yourself id (id of the block he tried to give himself), so you give him simplegive.item.* , which will let him give himself everything, but to not let him use bedrock just add -simplegive.item.7 and he won't be able to use bedrock, but will be able to use everything else. I did it this way so it can be different for each group, so that my Builders can only give themselves dirt, grass, stone, cobble, glass, wool, and other resource type blocks, but no items.
     
  5. Offline

    RTRD

    Ah, ok! :D
     
  6. Offline

    Hempa

    ok u know how to fix it?
     
  7. Offline

    captainawesome7

    @Hempa Well I could throw in a playerUpdateInventory, but I don't know if it would fix the problem
     
  8. in 1.2 flint is misspelled in the item list. its actually filt
     
  9. Offline

    captainawesome7

  10. Offline

    DarkKiller13

    how to u get trapdoors with the wording command instead of ID,
    like /i glass
    how would u put i tfor trapdoors? i put /i trapdoor and /i trap door and nothing
     
  11. Offline

    Masterflapdrol

    WTF why rickrold? :mad:
     
  12. Offline

    captainawesome7

    @Masterflapdrol I swear to god that wasn't me... At least I don't remember doing that...
     
  13. Offline

    Masterflapdrol

    heara: To me to support my plugins :)
    Video of this plugn in action here :)
     
  14. Offline

    captainawesome7

    I know where it is, but I don't remember putting that in my OP
     
  15. Hey, im running on windows and can you please tell me how do i give permission to me to give myself or someone else items? im the maker and host of the server.
     
  16. Offline

    captainawesome7

  17. ty. got it to work.
     
  18. Offline

    dfduck

    When someone uses the /i command, he gets 'internal error' (or something like that) and the server console gives this error:
    Code:
    2011-06-05 20:58:21 [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:281)
        at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:718)
        at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:684)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:677)
        at net.minecraft.server.Packet3Chat.a(Packet3Chat.java:32)
        at net.minecraft.server.NetworkManager.b(NetworkManager.java:217)
        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:401)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:311)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    Caused by: java.lang.NumberFormatException: For input string: "block"
        at java.lang.NumberFormatException.forInputString(Unknown Source)
        at java.lang.Integer.parseInt(Unknown Source)
        at java.lang.Integer.parseInt(Unknown Source)
        at me.captain.SimpleGive.SimpleGive.onCommand(SimpleGive.java:253)
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35)
        ... 12 more
    This doesn't happen always, sometimes it works fine.
     
  19. Offline

    captainawesome7

    @dfduck I think that happens when you don't put in a valid item name, like:
    Code:
    Caused by: java.lang.NumberFormatException: For input string: "block"
    It runs the name through the items.txt file, and if it comes back null, returns the original string (so ids are returned as ids). But "block" wouldn't return anything in the file. I can add a try/catch to catch the error in the next version.
     
  20. Offline

    dfduck

    Yes, it happens when they type a wrong block name (forgot to say), but it does work with the /give command (then it says 'wrong block name' or something like that).
     
  21. Offline

    captainawesome7

    @dfduck I probably just forgot to add it to /i
     
  22. Offline

    fatmarley

    Curious if has options for multi worlds?
     
  23. Offline

    captainawesome7

    omg dude it supports permissions which is multi world
     
  24. Offline

    fatmarley

    omg dude thanks for the answer
     
  25. Offline

    MyAbby

    I cannot seperate OP and default users by using Permssion Phoenix 2.7.4

    I gave permssion nodes (simplegive.give, simplegive.item) to only moderator but doesn't work on both sides with msg (Don't have permission to: Itemize)
    (and OP has '*' so they should be able to use them all even if those nodes are not present)

    Should i use another permissions plugin?
     
  26. Offline

    captainawesome7

    That is the permissions that I use, and it works for me...
     
  27. Offline

    Teraku

    This doesn't work with TooManyItems. It just says "Enjoy your new Sandstone!" But it doesn't give anything until you reconnect. And yes, I did change TooManyItems.txt.
     
  28. Offline

    captainawesome7

    It is because the way TooManyItems updates your inventory. It DOES show before reconnection, all you have to do is click where it would have gone (the open inventory slot with the lowest ID number), and it will appear. This is NOT my fault.
     
  29. Offline

    Teraku

    Ah. Now I see. Thanks!
     
  30. Offline

    Sneaky420

    So I have been reading threw all these posts, and I see that I am able to limit the ones that I can give players with '-simplegive.item.7' but is there a way that I can just block a range, like 200+. I am still new with setting up a server so I tried '-simplegive.item.2**' along with only 2*, and I was still able to spawn id 259. Any tips on a range rather then typing out 1-96 to allow and all the rest to block?
     
  31. Offline

    captainawesome7

    There is no way to do ranges. The only way that would help is if you wanted to do only building/resource blocks and not items. I am not going to add node ranges.
     

Share This Page