[INACTIVE][ADMIN] Gimme v1.1.2 - A lightweight /Item with a blacklist and whitelist [All Versions]

Discussion in 'Inactive/Unsupported Plugins' started by CraftRepo, Apr 4, 2011.

  1. Offline

    CraftRepo

    Gimme - A lightweight /Item with a blacklist [All CraftBukkit Versions]
    Version: v1.1.2

    Gimme is a plugin that allows users to obtain items not on a predefined blacklist or whitelist setup by server owners.

    [diamond]You will need Permissions 2.7! Or something that fakes permissions...[diamond]

    PLEASE NOTE: The permissions nodes have changed... please don't say it doesn't work when you are just using the wrong permissions nodes.

    Permissions Nodes (Click To View) (open)

    gimme.blacklist – Gives access to the /gimme command and checks the request against the blacklist.
    gimme.whitelist – Gives access to the /gimme command and checks against the whitelist.
    gimme.gimme – Gives access to the /gimme command and DOES NOT check against the blacklist.

    Features:
    • Admin Defined blacklist. just eddit plugins/Gimme/config.yml
    • Lightweight; Has no bloat. Great for small servers!
    Download:

    http://dl.dropbox.com/u/810883/Gimme.jar

    Commands:
    • /gimme [item name or ID]:{datavalue} {amount} - Gives the sender the requested item based on permissions. If no amount is given, it will be a stack of 64.
    Changelog (Click To View) (open)


    Version 1.1.2
    • v 1.1.2 - Fixed a nasty NPE, added a try/catch for NFE, fixed a bug in the config writer, and a bug in the blacklist and whitelist modes.
    • v 1.1.1 - Fixed several bugs that caused instability and inability to obtain items.
    • v 1.1.0 - Added Data values... Finally. Also added whitelist mode...
    • v 1.0.0 - Initial release to the public



    Special thanks to @MCVancraft for both the plugin idea and for testing and deploying each Development version Pre-v1.0.0 into a live production environment.

    PLEASE, only use this thread for support related questions. Or for thanks/etc. All feature requests and bug reports should be officially submitted through the bug tracker linked below.

    Bug Tracker:
    http://jira.craftrepo.net/Browse/GIMME offline. use this thread

    Website:
    http://craftrepo.net

    IRC Info:
    irc.rawrirc.net #craftrepo
     
  2. Offline

    Incendia

    gimme Gimme GIMME!
    An alias should be 'gib'
     
  3. Offline

    RyanSmith

    Ooops! Nevermind, accidently typed an invalid data value.
     
  4. Offline

    Avous

    question there... how do you give half steps and different wool colors?

    in fact i cant figure out must words with a space in them ><
     
  5. Offline

    CraftRepo

    don't use a space. the next release will be able to handle data values. like wool colour and halfstep type. It will be out in a few days.

    EDIT: IN FACT, it's been released, NOW! caused a bug, so it's been reverted to 1.0.0 until it's fixed. Should be ready tonight/tomorrow.
     
  6. Offline

    Avous

    you are a king among men!
     
  7. Offline

    Avous

    you'll be happy to know i cant opperate as a admin without your plugin now i always type /gimme (item id) instead of /give (name) (id)
     
  8. Offline

    HawnSolo

    Any chance you could build in the ability to use '/i' as an alias for Gimme (also makes it easier on people used to /i or /item)?
     
  9. Offline

    CraftRepo

    I will not do this ONLY because /i is a command in Essentials and other plugins. I may add an alias at a later point, but it's not on my top list of priorities. I'm currently more concerned with releasing the update that has Data Values.
     
    vancraft likes this.
  10. Offline

    HawnSolo

    I understand where you're coming from, but it would seem to me that this plugin would be most useful for people who don't use Essentials. (like me, heh) /gimme is easy enough to get used to, though.
     
  11. Offline

    CraftRepo

    Like I said, there will likely be an alias. Just not now. The server that came up with the plugin concept uses both. :)
     
    vancraft and HawnSolo like this.
  12. Offline

    vancraft

    we gotta think of more to keep craftrepo busy :)
     
  13. Offline

    Avous

    data values? XD i think that will keep him busy we need data valuuues :O wait >.> why does his gimme version still say 1.0.0 if his change log says 1.1.0 >.>?
     
  14. Offline

    Tapdragairsoft

    Data Values and IDs are the same thing, as far as I know..
     
  15. Offline

    Knapier89

    May I make one suggestion... Let's use my situation. I want my Builders to only be able to spawn blocks and not actual items, such as tools, apples, armor, etc. Could you possibly add in an option to blacklist a numbered list of items. For example the config could be like this:

    #Gimme Configuration
    denied:
    #Put blocks here
    - 7
    - 46
    - 256 (through) 357

    I think that would be great so that way if admins wanted, players could still at least use the world's resources, since ya gotta pay the price of loading all of those chunks ;)
     
  16. Offline

    iFraank

    you have to update your craftbukkituptodate link, it cant download your latest build
     
  17. Offline

    CraftRepo

    Talk to them, we haven't done a single thing to be included in that. So we have nothing to change.
    Data values are in the Latest Devel build. We need people to test it before we release 1.1.0
     
  18. Offline

    Pyker

    Also, could you possibly change the name of "flintandsteal" to "flintandsteel"? Thanks :p
     
  19. Offline

    CraftRepo

    fixed in Devel.

    Gimme works on 1.5_02 test builds.
     
    Pyker likes this.
  20. Offline

    I_am_not_funny

    works fine in #714, no bugs, so far. thank you so much for this simple plugin, i wont install essentials due to one thing: to much commands, which makes this plugin perfect for simple item spawning without people on my server even seeing that i spawn stuff
     
  21. Offline

    CraftRepo

    Gimme 1.1.0 released
     
  22. Offline

    CainFoool

    Make it so you can use like /gimme wool:red

    Might work ;)
     
  23. Offline

    CraftRepo

    would add more complexity to the code. I'll look into it though.
     
  24. Offline

    Avous

    502:bad gateway on d/l
     
  25. Offline

    Ninjaii

    My mod's keep getting an internal error when they try and use /gimme. They have 'gimme.blacklist' as their permission node, they aren't inheriting anything, and it works perfectly for me (The admin), but I have '*' as my permissions.

    Config.yml:
    Code:
    #Gimme Configuration#Please only put block IDs here.
    #Don't complain if you put grass instead of 2 and it breaks...
    
    #Put block IDs for blacklist mode heredenied:
        - 7
        - 46
        - 259
        - 302
        - 303
        - 304
        - 305
        - 83
        - 90
        - 92
        - 30
        - 18
        - 19
        - 59
        - 60
        - 56
    
    #Put block IDs for whitelist mode hereallowed:
        - 4
        - 3
        - 17
        - 91
        - 256
        - 257
        - 258
        - 267
        - 298
        - 299
        - 230
        - 231
        - 314
        - 315
        - 316
        - 317
        - 352
        - 346
        - 283
        - 284
        - 285
        - 286
        - 266
    
    This is a great mod otherwise!
     
  26. Offline

    CraftRepo


    put allowed: and denied on their own lines.
    like so.
    it's a bug that will be fixed in 1.1.2.
    Code:
    #Gimme Configuration#Please only put block IDs here.
    #Don't complain if you put grass instead of 2 and it breaks...
    
    #Put block IDs for blacklist mode here
    denied:
        - 7
        - 46
        - 259
        - 302
        - 303
        - 304
        - 305
        - 83
        - 90
        - 92
        - 30
        - 18
        - 19
        - 59
        - 60
        - 56
    
    #Put block IDs for whitelist mode here
    allowed:
        - 4
        - 3
        - 17
        - 91
        - 256
        - 257
        - 258
        - 267
        - 298
        - 299
        - 230
        - 231
        - 314
        - 315
        - 316
        - 317
        - 352
        - 346
        - 283
        - 284
        - 285
        - 286
        - 266
    
     
  27. Offline

    Ninjaii

    Ok, So I've done that, and now the Mod say's 'You aren't allowed to get that item!' but gives it anyway? The log in the bukkit cmd says '[Gimme]Ninjaii tried to get 7'.
    Good thing is, there's no internal error anymore.

    Also: I've disabled all other mods apart from this and permissions, and it still doesn't work, so it's not that.

    My permissions for Moderators is :
    Code:
    Moderator:
            default: false
            info:
                warp.limit.total: 10
                warp.limit.public: 3
                warp.limit.private: 10
                warp.limit.global: 0
                prefix: ''
                suffix: ''
                build: true
                warp:
                    limit:
                        total: 10
                        public: 3
                        private: 10
                        global: 0
                    timers:
                        warmup:
                            public: 2
                            private: 2
                            global: 2
                        cooldown:
                            public: 30
                            private: 30
                            global: 30
            inheritance:
            permissions:
                - 'minecraft.time'
                - 'minecraft.tp'
                - 'HomeX.*'
                - 'warp.create.public'
    
                - 'general.spawn'
                - 'lockette.user.create.'
                - 'warp.to.global'
                - 'warp.to.own'
                - 'warp.to.other'
                - 'warp.sign.global'
                - 'warp.sign.own'
                - 'warp.sign.other'
                - 'warp.create.private'
                - 'monsterhunt.usercmd.hunt'
                - 'monsterhunt.usercmd.huntscore'
                - 'gimme.blacklist'
    
     
  28. Offline

    CraftRepo

    file a bug report with as much information as possible on http://jira.craftrepo.net be sure to file it on the gimme project.
     
  29. Offline

    Meflakcannon

    I am having an issue integrating a blacklist for users. When I try to have moderators or default users of the server use /gimme it checks using th - 'gimme.blacklist' that way there is no TNT abuse (main problem on the server atm). However when I test I get the following error

    Code:
    18:54:28 [SEVERE] null
    org.bukkit.command.CommandException: Unhandled exception executing command 'gimme' in plugin Gimme v1.1.2
            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:278)
            at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:682)
            at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:645)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:639)
            at net.minecraft.server.Packet3Chat.a(Packet3Chat.java:32)
            at net.minecraft.server.NetworkManager.a(NetworkManager.java:196)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:75)
            at net.minecraft.server.NetworkListenThread.a(SourceFile:100)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:372)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:287)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:394)
    Caused by: java.lang.NullPointerException
            at net.craftrepo.Gimme.gimme.itemDeny(gimme.java:520)
            at net.craftrepo.Gimme.gimme.onCommand(gimme.java:702)
            at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35)
            ... 12 more
    
    It appears to be denying the user to the item but throws an error. However It also generates this error on items that are not on the blacklist.. So I am unsure where the error is coming in.
     
  30. Offline

    Knapier89

    Whenever me and my players use /gimme, it gives us a no such item message. Ex. "/gimme dirt" produces this message in the game "No such item dirt" No errors appear in the console however. It seems that only item IDs work and the item names are not. I am running CB 806.
     

Share This Page