[GEN] BannedItems v1.4.1 - Banning Items for /give [1060]

Discussion in 'Inactive/Unsupported Plugins' started by kozie87, Jun 21, 2011.

  1. Offline

    kozie87

    Sorry for the long wait. I'm trying to make some time developing this plugin further.

    I also have to develop a website in my spare time for a client of mine.

    I've been developing for MC a little since the last couple of weeks.
    At least i have a succesful build now but the plugins still doesn't do want i want it to do.

    sorry for the inconvenience.
     
  2. Offline

    carterpape

    1. This is a great plugin, I especially like that you can /give more than 64 items and they go directly into your inventory, but
    2. If you ask for an invalid item id (E.G. 97), it crashes Minecraft and if the item id is too high (E.G. 1946031351), the player who got the item must have their player data erased.
     
  3. Oh what i would do for permission support :p
     
  4. Offline

    kozie87

    Ok, thanks for the bug report ^_^ i'll add it to the the to-do list :)
     
  5. Offline

    Cosmic Break

    if this had permissions and multiworld support it would be aweseome!
     
  6. Checking this plugin everyday to see if its updated is starting to get tiring ;)
     
  7. er permissions for me isnt working

    yea the permission node is there but it doesnt work

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

    kozie87

    IS there some error or message that you get and what permissions plugin did you installed?
     
  9. well no, there is no error at all it is simply "you havnt got permission to do that". But im the admin! It only works via op. There is also a bug with the /i plugin. Due to corruption i cant show you the error but there is a internal error when you do a /i command
     
  10. Offline

    Lying_Cake

    DEVELOPERS HALP SOMETHINGS WRONG!
    Just kidding ;)

    But seriously somethings broken.
    Code:
    org.bukkit.command.CommandException: Unhandled exception executing command 'i' in plugin BannedItems v1.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:352)
        at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:737)
        at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:701)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:694)
        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:89)
        at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:454)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:363)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    Caused by: java.lang.NumberFormatException: For input string: "slab"
        at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
        at java.lang.Integer.parseInt(Integer.java:449)
        at java.lang.Integer.parseInt(Integer.java:499)
        at org.kozie87.BannedItems.onCommand(BannedItems.java:108)
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35)
        ... 12 more
    19:00:37 [SEVERE] null
    org.bukkit.command.CommandException: Unhandled exception executing command 'i' in plugin BannedItems v1.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:352)
        at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:737)
        at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:701)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:694)
        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:89)
        at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:454)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:363)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    Caused by: java.lang.NumberFormatException: For input string: "# Make a newline-separated list of Item Id's here"
        at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
        at java.lang.Integer.parseInt(Integer.java:449)
        at java.lang.Integer.parseInt(Integer.java:499)
        at org.kozie87.BannedItems.isIgnored(BannedItems.java:244)
        at org.kozie87.BannedItems.giveItem(BannedItems.java:148)
        at org.kozie87.BannedItems.onCommand(BannedItems.java:131)
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35)
        ... 12 more
    >
    
    Could it be commandbook interfering? It also uses /item and /i...
    Thanks for a useful plugin!!
     
  11. Offline

    kozie87

    K thanks for the bug reports.

    I'm at the office right now and will try to look up these bugs in the evening.
     
  12. also please get permissions working cause thats the thing needed the most! Thanks :D
     
  13. Offline

    kozie87

    Tested this at home again, withouth any other fancy plugings (even without permission/group plugins).

    Everything worked fine tho. Found a little thing which wasn't causing any of the problems you guys had (i guess).
    Updated to 1.4.1. Please try it again.

    As for the permission thing, everything worked fine also.
    I did not configure any permissions or whatsoever.

    When being opped, you should be able to use the plugin's commands; without being an op, you shouldn't.
    With the BannedItems.give permission given explicitly, you should always be able to use the commands.

    this was the case for me though, with and without the BukkitPermissions plugin.

    What bukkit version are you using and what permission plugin?

    Maybe some other developer can help me with some code to check for the existence of a command so the /item command won't give errors anymore when another plugin is conflicting.

    Thanks in advance and good luck ^_^
     
  14. i am using bukkit version 1060 and using permissions 3.1.6. So the permissions is for BukkitPermissions? Not permissions 3.1.6?
     
  15. Offline

    Ijiin

    when i use this on my server i can't get items as wool with color working for example 35:15 etc... please advice.
     
  16. Offline

    kozie87

    @Soviet Ostrich
    I haven't tested this with Permissions 3.1.6, i will check these asap than.
    I actually thought it was recommended to use the BukkitPermissions for the new Bukkit versions :p

    @Ijiin
    I found this one out also recently, so i'm aware of it.
    I still have to find a way on how to implement this with the current codebase.
    I couldn't find a way to do this tho.. Maybe i have to pass allong strings instead of int's ^_^.

    I'll keep you guys posted!
     
  17. well i have no idea what to use, i just always use permissions 3.1.6, i will look into bukkitpermissions but could you get it to work for permissions 3.1.6 because alot of people still use it. Thankyou :D
     
  18. Offline

    FrozdY

    instead of an ignore list can't you just simply do a ban list instead, i just wanna ban things that starts fires so for example:
    <document id's to ban>
    10
    11

    then it will only deny the commands
    "/give 10"
    "/g 10"
    "/i 10"
    "/item 10"
    "/give 11"
    "/g 11"
    "/i 11"
    "/item 11"
    and allow the rest of the commands, that's the easiest way for the owner/admins to setup
    or you can allow everything and type:
    /bitem 10 ingame or bitem 10 in the console(that's the best option cuz then only the owner can edit it)
    then no permissions allowed unless you have other worlds then the command could be:
    bitem 10 [worldname]
    or
    bitem 10 all to add to all the worlds loaded
    please considder this atleast, from my perspective those would be best and also, support for TooManyItems would be gold, then you've created the BEST item ban system, easy to setup and really effective with the console command only, then you have the security you need and it's soo easy, i'd actually love that plugin over anything
     
  19. Offline

    M4karon

    I have a problem with this plugin -> when I type command like /g, /give it says:
    An internal error occurred while attempting to perform this command.
    Can you tell me what I'm doing wrong or why it doesn't work? :(
     

Share This Page