[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

    chrisc97

  3. Offline

    ile21

    For some reason i can't open the SimpleGive.jar. When I download it I drag it to the plugins folder in the server and when I try to open it an error occurs and it says it can't be opened. Am I doing something wrong? Plz help
     
  4. Offline

    captainawesome7

    @ile21
    Are you using OSX, Windows, or Linux?
     
  5. Offline

    ile21

    Windows
     
  6. Offline

    captainawesome7

    @ile21 I have no idea.
     
  7. Offline

    Spamandritz

    this looks like an amazingly simple plugin...the only thing is...to give, do you need to be opped?
    please say no.....lol
     
  8. Offline

    captainawesome7

    @Spamandritz
    If you don't have permissions installed then you have to be op
     
  9. Offline

    Spamandritz

    ok thank god...i need to de-op everybody so i can use permissions plus and not have either ops being able to promote themselves, or nobody being able to spawn items....
     
  10. Offline

    captainawesome7

    wait, @ile21 why r u trying to open the jar?
     
  11. Offline

    SgtSquishy

    How do you give or /i coloured wools and dye?
     
  12. Offline

    captainawesome7

    @SgtSquishy
    /i wool 64 1 would give you 64 orange wool.
    for more info:
    [​IMG]

    ^ Look at the wool section, put a number 0-15 regarding what color you want it
     
  13. Offline

    ile21

    oh because didnt you say that there is a text document where you can modify the stuff or something
     
  14. Offline

    captainawesome7

    @ile21 I be confuzzled
    To modify what items are given with the name you open Items.txt in the SimpleAdmin folder in your plugins folder. You can just add more. Be careful not to put ones that are already there though. I forgot to add ids 352 and up. So you need to add ones for cake and cookies and stuff, sorry about that. But you do not need to open the .jar. Items.txt is made when you run SimpleAdmin for the first time.
     
  15. Offline

    ile21

    Oh ok I understand now thanks, but I can't find a simpleAdmin folder in the plugins folder :S
     
  16. Offline

    captainawesome7

    @ile21 lol forgot what plugin this was, it should be a SimpleGive folder sorry
     
  17. Offline

    Rocky

    This definitely doesn't work. i set the permissions. and, no matter what i did. they couldn't use it. I have everything configured correctly. and i even made it so that Simplegive was the only plugin loading along with permissions. Nada.
     
  18. Offline

    captainawesome7

    @Rocky
    Except that it works fine for me. So clearly you are doing something wrong.

    @Rocky Did you give them simplegive.i or simplegive.item?

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 15, 2016
  19. plugin works fine, although if someone uses /i without any argument (is that the correct term?) it will give an internal error message, and in the server log it will throw exceptions
     
  20. Offline

    captainawesome7

    Yes, argument is the right term. It throws an exception because the error catching is after the permissions method, so it will only throw it if you don't put in any arguments and have permission.
     
  21. Offline

    Del43

    It would be nice, if you add an option to NOT display the chat info. It's a lot of spam.

    And I got this error, when using give from console:
    Code:
    2011-05-09 18:35:21 [WARNING] Unexpected exception while parsing console command
    org.bukkit.command.CommandException: Unhandled exception executing command 'give' in plugin SimpleGive v1.0
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:37)
        at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:85)
        at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:247)
        at net.minecraft.server.MinecraftServer.b(MinecraftServer.java:394)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:379)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:285)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:394)
    Caused by: java.lang.ClassCastException: org.bukkit.craftbukkit.command.ColouredConsoleSender cannot be cast to org.bukkit.entity.Player
        at me.captain.SimpleGive.SimpleGive.onCommand(SimpleGive.java:91)
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35)
        ... 6 more
    If it's my fault, blame me, otherwise please fix this.
     
  22. Offline

    captainawesome7

    @Del43
    You cant use the console. It only works with an instance of a Player
     
  23. Offline

    Del43

    Well, why not? I mean, that you can't use /i in console makes sense, but why can't I give someone
    an item via console? In short: Will you make it possible to use /give via console (which
    is possible without your plugin) ?
     
  24. Offline

    captainawesome7

    You must not understand coding, but I need to add an if statement, it shouldn't take too long. I won't work on it right away though, so I might add it by tomorrow.
     
  25. Offline

    Del43

    Well, I do actually. It's pretty trivial to make it work. I just posted the errorlog, because I was too lazy to check
    if the problem was caused by another plugin. So I just asked thinking: Well, if it's indeed an issue with his plugin,
    he might wanna fix it.
     
  26. Offline

    captainawesome7

    @Del43 Its because I was lazy and at the beginning of onCommand added Player player = (Player) sender; which makes it impossible to use the console. I can change this, but it will take a while, also, it will only work for a few of the commands.

    I'm not changing that, mostly because it annoys me when plugins don't have any message confirming that the action has been completed, and because if you don't want it to spam messages stop giving yourself stuff. Also, I forgot what plugin this was on the post above, it should take about 4 minutes to make /give work in the console.

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

    Del43

    I wasn't asking you to remove it, but to give an option to disable it (like a config file with a simple true/false variable).

    Edit: Just noticed. It looks like I'm complaining a lot here. :D Sorry for that. I like your plugin and just want to help improve it.
     
  28. Offline

    captainawesome7

    @Del43
    I can add the values in the Items.txt with the next version, which should be out in not too long :)

    @Del43 sorry, couldn't get the config value to work properly, but I did fix console use of /give :p

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

    Del43

    @captainawesome7 Yes, works great. Thanks a lot. Hope you get that value working.
    I'd really like the confirmation, if there would another chat window just for stuff like this.
    Speaking of command confirmation. Could you add server console output for the command?
    So, when people use your commands, it get's logged.
     
  30. Offline

    captainawesome7

    @Del43
    Alright, if you want it.
     

Share This Page