[INACTIVE][MECH] NoDrop v0.2.3 - Control User Drops on Death [602-617]

Discussion in 'Inactive/Unsupported Plugins' started by Alex Nolan, Mar 14, 2011.

  1. Offline

    Alex Nolan

    NoDrop 0.2.3

    Download 0.2.3 [602-617] (4/2/11) | Static jar
    Older: 0.2.2 [527-556] (3/22/11), 0.2.1 [526-531] (3/16/11), 0.2.0 [526-531] (3/15/11), 0.1.0 [554] (3/14/11)

    Souce Code (Will be up shortly)


    This plugin came about from a request to keep OPs from dropping items on death to keep from ruining economies, etc, so I decided to take up the challenge. So far it is just very basic: If you are and OP two things will happen - one, you will not drop any items for others to pick up, and two, you will get your items back after you respawn. Plans for the near future include permissions along with a settings file to control both aspects.​

    Features
    1. Don't drop items on death for others to pick up
    2. Keep items after death
    3. Very customizable
    4. More coming soon.... (Please suggest some too)
    Commands

    Code:
    None planned?
    Settings (If you don't like permissions)
    Code:
    #options are 'all', 'ops', or 'not ops', select who you want the plugin to effect
    useFor: 'all'
    
    #use either drop or nodrop (only one), nodrop selects what you don't want dropping, drop selects what you do want dropping
    #custom words: 'helmet', 'boots', 'chestplate', 'leggings', 'equipped armor', 'held item', 'all'
    drop:
        - 41
        - 266
        - 'helmet'
    
    #what items should be kept on death
    keep:
        - 'held item'
        - 'equipped armor'
    Permissions
    Code:
    None so far :D
    Todo


    Changelog
    • 0.2.3
      • Updated for [602-617]
    • 0.2.2
      • Fixed old inventory bug
    • 0.2.1
      • Fixed settings, 'all' now works
    • 0.2
      • Fixed a major bug that would crash the client
      • Implemented settings :)
    • 0.1
      • Initial Build
     
    Unset likes this.
  2. Offline

    Alex Nolan

    That's strange, it should drop everything not in the nodrop list. I'll check it out though, it might be a bug.

    That's strange, it shouldn't be doing that. Do you mind posting your nodrop version and bukkit version and config file?

    Well the * operator doesn't do anything, you can use all instead though. Try this out:
    Code:
    useFor: 'all'
    
    nodrop:
        - 'all'
    
    keep:
        - 'all'
     
    zwarmapapa likes this.
  3. Offline

    nemafow

    Is it possible to have nodrop working with NPCX installed or is it not possible? I beleive they both look for the same command/object on a player death.
     
  4. Offline

    BangL

    v0.2.2 on CB#602 :

    Code:
    2011-03-31 14:25:25 [SEVERE] ENTITY_DAMAGED loading NoDrop v0.2.2 (Is it up to date?)
    java.lang.NoSuchFieldError: ENTITY_DAMAGED
        at com.msm595.NoDrop.NoDrop.onEnable(NoDrop.java:64)
        at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:118)
        at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:511)
        at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:216)
        at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:93)
        at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:71)
        at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:204)
        at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:191)
        at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:131)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:246)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:366)

    pls update :)
     
  5. Offline

    kasaikou

    I would love to see this updated to 617. My server users really enjoy it.
     
  6. Offline

    Ne0nx3r0

    This is a must have for anti-griefing measures... Love it! Please update for 1.4; I would do it, but I'm just not proficient enough with Java :|.
     
  7. Offline

    Alex Nolan

    Updated! :D Now supports 602 (the last version before 1.4) and tested to work up through 617.
     
    kasaikou likes this.
  8. Is there anyway to make it drop all as normal but only the player dropping/die can pick the stuff right up.
    I like that ppl dont farm each other, but i dont want to let ppl just die to spawn back whit all the items.
    ?
     
  9. Offline

    fireb33

    Hey Alex, did you plan to add permission support? Thanks.
     
  10. Offline

    Andrew0085

    Hmm...it works but when i kill myself with /kill, i drop my items and get errors in the server window. This only happens when i /kill myself, when i die naturally it works fine.
     
  11. Offline

    Tobei

    Didn't work for me at all. When I fell in lava, dropped everything and errors GALORE in the server window. Also when a creeper got me too.
     
  12. Offline

    ulqX

    is there any way to make it drop everything EXCEPT a certain item which you keep?
    i tried various combinations of drop/nodrop/keep in the config file, and no combination does exactly that
    could be a bug...?
     
  13. Offline

    Tobei

    nodrop: ###
    keep: ###

    ?
     
  14. Offline

    Alex Nolan

    So far no, unfortunately I don't plan on adding it the the future because it would digress from the original purpose of this plugin.

    I do, but I am holding out until Bukkit has native permissions, which it is my understanding that it should be fairly soon.

    Yes, the problem is that the kill command doesn't inflict any damage, this is the same as dying because a chunk doesn't load. In the event for dying the inventory is already empty, so i get the inventory when damage is inflicted. I could fix this by saving the inventory each time it changes, but this would be much more inefficient. I am currently experimenting with potential solutions.

    Try setting up the settings file using the example in my original post. Also please post the error messages, bukkit version, and nodrop version.
    Code:
    useFor: 'all'
    nodrop:
        - 'all'
    keep:
        - 'all'
    Just set nodrop and keep to the same item, then it will drop any item but nodrop and keep it.
     
  15. I'm running CB 617 and NoDrop v0.2.3. When I die it prints this error:
    Code:
    [SEVERE] Could not pass event ENTITY_DEATH to NoDrop
    java.lang.NullPointerException
            at com.msm595.NoDrop.NoDrop.armors(NoDrop.java:129)
            at com.msm595.NoDrop.NDEntityListener.onEntityDeath(NDEntityListener.java:47)
            at org.bukkit.plugin.java.JavaPluginLoader$39.execute(JavaPluginLoader.java:405)
            at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:59)
            at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:255)
            at net.minecraft.server.EntityPlayer.a(EntityPlayer.java:121)
            at net.minecraft.server.EntityLiving.a(EntityLiving.java:393)
            at net.minecraft.server.EntityHuman.a(EntityHuman.java:409)
            at net.minecraft.server.EntityPlayer.a(EntityPlayer.java:147)
            at net.minecraft.server.NetServerHandler.c(NetServerHandler.java:612)
            at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:557)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:551)
            at net.minecraft.server.Packet3Chat.a(SourceFile:24)
            at net.minecraft.server.NetworkManager.a(NetworkManager.java:198)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:72)
            at net.minecraft.server.NetworkListenThread.a(SourceFile:100)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:368)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:283)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:375)
    It also seems to drop everything I have even though my config.yml looks like this:
    Code:
    #options are 'all', 'ops', or 'not ops', select who you want the plugin to effect
    useFor: 'all'
    
    #use either drop or nodrop (only one), nodrop selects what you don't want dropping, drop selects what you do want dropping
    #custom words: 'helmet', 'boots', 'chestplate', 'leggings', 'equipped armor', 'held item', 'all'
    drop:
    #    - 41
    #    - 266
    #    - 'helmet'
        - 'equipped armor'
        - 'held item'
    
    #what items should be kept on death
    keep:
    #    - 'held item'
    #    - 'equipped armor'
        - 'all'
    Just a thought, but could this be because I have it set to drop equipped armor and I'm not wearing any?
     
  16. Offline

    ulqX

    tried it...

    Code:
    #options are 'all', 'ops', or 'not ops', select who you want the plugin to effect
    useFor: 'all'
    
    #use either drop or nodrop (only one), nodrop selects what you don't want dropping, drop selects what you do want dropping
    #custom words: 'helmet', 'boots', 'chestplate', 'leggings', 'equipped armor', 'held item', 'all'
    nodrop:
        - 266
    
    #what items should be kept on death
    keep:
        - 266
    it kept the item i wanted it to keep (266) in inventory, but it didnt drop or keep any of my other items; they just disappeard after i died
     
  17. Offline

    lilalulelo

    Got the same problem than ulqX.

    Code:
    #options are 'all', 'ops', or 'not ops', select who you want the plugin to effect
    useFor: 'all'
    
    #use either drop or nodrop (only one), nodrop selects what you don't want dropping, drop selects what you do want dropping
    #custom words: 'helmet', 'boots', 'chestplate', 'leggings', 'equipped armor', 'held item', 'all'
    nodrop:
        - 'equipped armor'
        - 267
        - 268
        - 269
        - 270
        - 271
        - 272
        - 273
        - 274
        - 275
        - 276
        - 277
        - 278
        - 279
        - 283
        - 284
        - 285
        - 286
        - 261
        - 262
        - 256
        - 257
        - 258
        - 290
        - 291
        - 292
        - 293
        - 294
    
    #what items should be kept on death
    keep:
        - 'equipped armor'
        - 267
        - 268
        - 269
        - 270
        - 271
        - 272
        - 273
        - 274
        - 275
        - 276
        - 277
        - 278
        - 279
        - 283
        - 284
        - 285
        - 286
        - 261
        - 262
        - 256
        - 257
        - 258
        - 290
        - 291
        - 292
        - 293
        - 294
    I correctly keep the items I want, but nothing drop on death.
     
  18. Offline

    skyref

    I will be very gratefull, when NoDrop will work for groups which I choose, for some groups, but not for all. I hope, that you add that functionality soon, and I think, that this will be easiest to do by Permission (when your plugin support it).
     
  19. Offline

    Bonkerz

    i really need a permissions / multiworld config, this plugin is truely awsome but i can't use it because i have 2 maps (pvp/coop..) can u made this for me ?
     
  20. Offline

    Alex Nolan

    Sorry I haven't replied for a while guys, I just got back from EB 2011, and my hotel didn't have free internet (didn't want to pay ~$15 a day) :/. Anyway I'll be working on updating everything along with probably permissions support as soon as I get some rest XD.
     
    dak393 likes this.
  21. Offline

    dak393

    Awesome thanks for your hard work :)
     
  22. Offline

    haita

    Same problem as BlueJeansAndRain, happens with or without 'equipped armor'. The error messages come up after I click respawn.

    Here's my config:
    Code:
    # NoDrop 0.2.3
    
    useFor: 'all'
    
    nodrop:
        - 'equipped armor'
        - 276
        - 267
        - 3
        - 4
        - 306
    
    keep:
        - 276
        - 267
        - 306
    Errors also:
    Show Spoiler
    [INFO] Plugins: BlockConsoleMessages, EmptyInventory, LocalChat, MobLimiter, NoDrop, OtherBlocks, Permissions, PhysicalShop, PlgSetspawn, Prefixer, rTriggers, SimpleSave, WorldBorder, WorldEdit
    [SEVERE] Could not pass event PLAYER_MOVE to NoDrop
    java.lang.NullPointerException
    at com.msm595.NoDrop.NDInventory.restore(NDInventory.java:114)
    at com.msm595.NoDrop.NDInventory.restore(NDInventory.java:66)
    at com.msm595.NoDrop.NoDrop.getDrop(NoDrop.java:87)
    at com.msm595.NoDrop.NDPlayerListener.onPlayerMove(NDPlayerListener.java:29)
    at org.bukkit.plugin.java.JavaPluginLoader$7.execute(JavaPluginLoader.java:240)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:59)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:255)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:128)
    at net.minecraft.server.Packet10Flying.a(SourceFile:126)
    at net.minecraft.server.NetworkManager.a(NetworkManager.java:198)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:72)
    at net.minecraft.server.NetworkListenThread.a(SourceFile:100)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:368)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:283)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:375)
    (Repeats)
     
  23. Offline

    nalimleinad

    Please update to 1.5. No longer works and console spamming errors per one player moove. (Maybe only after death/death relog).
     
  24. i wonder that some players report, that on death they sometimes drop items? is this a known bug?
     
  25. Offline

    Alex Nolan

    Hey guys, I'm sorry I haven't been able to get to this recently. I enjoy working on these plugins, but recently with APs and finals coming up, along with SATs and my mom being in the hospital, I can't seem to find the time for it :(. If anyone would like to pick this up forever or just for a month, collaborate with me on this from now on, or just update it, I would be glad to explain how everything works (or at least should work). Thanks you guys very much for your support though :D.
     
  26. Offline

    snatch182

    Exacly, and as I know they drop it and they still have it, so its like duplicating.
     
  27. Offline

    SiKiN

    EXPLOIT FOUND.

    Players are jumping from extreme heights to kill themselves, this will force items to be dropped but this mod will also resupply the player with the items dropped. The player then goes down safety and collects the duped items.

    This have been removed from my server, thanks for the hard work but it is currently unstable.
     
  28. Offline

    arsjet

    I have the same problem too.
     
  29. Offline

    snatch182

    Any updates?
     
  30. Offline

    Vision29

    Could not load 'plugins/NoDrop.jar' in folder 'plugins':
    java.lang.UnsupportedClassVersionError: Bad version number in .class file
    at java.lang.ClassLoader.defineClass2(Native Method)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:775)
    at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:160)
    at java.net.URLClassLoader.defineClass(URLClassLoader.java:254)
    at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
    at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:36)
    at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:24)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:317)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:375)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:242)
    at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:134)
    at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:160)
    at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:108)
    at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:85)
    at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:217)
    at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:204)
    at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:144)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:259)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:394)

    THIS HAS BEEN HAPPENING IN ALL OF MY PLUGINS THAT INSTALLED. I CANT INSTALL NOT EVEN 1 PLZ HELP ME
     
  31. Offline

    SirHedgehog

    I hope your mum gets better soon. I'm in the process of writing a new version of this.
     

Share This Page