[MECH] DeathControl v2.1.0 - Take control over item deaths [BukkitDev]

Discussion in 'Archived: Plugin Releases' started by Bone008, Jun 22, 2011.

  1. Offline


    Seems that DeathControl isn't quite compatible with Iconomy v6

    At least I think that is what is the problem. xD

    2011-09-11 18:43:41 [SEVERE] Could not pass event PLUGIN_ENABLE to DeathControl
    java.lang.NoClassDefFoundError: com/nijiko/coelho/iConomy/iConomy
        at bone008.bukkit.nijikokun.register.payment.methods.iCo4.isCompatible(iCo4.java:57)
        at bone008.bukkit.nijikokun.register.payment.Methods.createMethod(Methods.java:55)
        at bone008.bukkit.nijikokun.register.payment.Methods.setMethod(Methods.java:95)
        at bone008.bukkit.deathcontrol.DeathControlPluginListener.onPluginEnable(DeathControlPluginListener.java:20)
        at org.bukkit.plugin.java.JavaPluginLoader$44.execute(JavaPluginLoader.java:548)
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:338)
        at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:892)
        at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:278)
        at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:178)
        at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:161)
        at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:286)
        at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:273)
        at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:149)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:337)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
  2. No, it looks like it isn't ...
    I didn't even notice iConomy 6 was out, shame on me ...
    Anyway, the updated Register (what I use to support economy plugins) now has API that I don't understand, and a lack of documentation. So it could take a couple of days until I fixed that (until then, 1.8 is likely to be released, so that might break and change other stuff as well).
  3. Offline



    I'm using the plugin Deathcontrol and Mob arena in my server, and whenever you die in the ARENA, you can /death back and get a set of armor/weapon you were carrying in the arena.
    Meaning - people can duplicated diamond/iron armor simply with the command /death back :(

    Has any1 encountered this conflict of plugins and what have there been the solutions then? I don't really want to get rid of mob arena nor death control - both very nice plugins and I really like them!!


    all the best,

  4. Offline


    I'm quite positive the conflict stems from MobArena and DeathControl both listening for entity death events on Priority.Lowest. MobArena clears all drops from arena players on death, meaning if MobArena is indeed the first plugin to handle deaths, DeathControl shouldn't even see the inventory. Unfortunately for this case, D comes before M in the alphabet, so I think if you ask Bone008 very nicely, he might consider compiling you a build with Priority.Low for testing purposes ;)

    There's also the option of using the MobArena API to check if a player dead player died inside of an arena region, and in that case completely skip the DeathControl death event.
  5. So the conflict is that MobArena gives items to the player to fight in its arena and they are deleted when they die?
    And you still get them back with DC ... That's indeed likely to be due to the priorities.

    I'll upload a (hopefully) fixed version as soon as I get the new Register to work.
    garbagemule likes this.
  6. Offline



    THe thought of priorities did come across my mind some time ago, but I don't dig much of the scripting or anything.
    I'll be waiting for a newest/fixed version then ;)

    Thanks for the quick response and good luck for the both of you!
  7. Offline


    I have the same Proble like TehCero

    Could it be possible not using iConomy ?
    I mean that the plugin does not connect to iConomy and make no Problems?
  8. The plugin is currently not compatible with iConomy 6, so that should be the reason.
    Now since the new RB for 1.8 seems to take its time, I'll probably release a fix for that pretty soon for cb 1060.
  9. Offline


    update plx :)
  10. I'm working on it. I'm currently implementing the new/changed damage causes, it shouldn't take that long (hopefully).
  11. Offline


    This is a great plugin! Thanks! :)
  12. Offline


    Hello there! Myself and my server players simply adore your plugin! Can you pretty please update it for RB 1185? :) Thank you!
  13. I'm glad that you like the plugin :)
    Yes, I'm still working on the update. It took a bit longer than I planned, but I hope it will be finished soon.

    By the way, it still seems to be working with 1.8 in its current state, the only broken things are probably economy and some death causes (then UNKNOWN should match). I'm fixing those issues at the moment as well as implementing a new system.
  14. Offline


    Hey there. Still loving the plugin. It's a greta perk for our donators.

    Since updating to 1.8 I'm having issues though. Prettymuch everyone on our server now gets to use DeathControl for certain deaths (falling, drowning and others) but those who SHOULD have the plugin (the donators) are not getting the benefit. Is this due to 1.8 or due to BukkitPermisisons do you think? I get no errors, just people can access the plugin when there permissions do not allow it.

  15. Permissions should make no problem in 1.8. Make sure you have your permissions plugin updated and that the permissions are given properly (they should be though, since it apparently worked before) ...

    However, the correct recognition of death causes does not work correctly as of 1.2 - there are some missing and some not working as intended.
    Update will be released soon, I'm just not exactly having much time right now.
  16. Offline


    Sweet. Thanks for the update. I look forward to your next release!
  17. I just released the update! Updated for 1.8.1 and the latest RB!
    Check out the changelog, there are some more changes.
    It took a bit longer than planned, but with the new child/parent death causes there is now a base to simply provide more specific death causes without having to configure a lot more.
    I will make use of that in the next updates.

    Hope you enjoy :)

    PS: If you experience any unexpected behavior or bugs, please post it. I wasn't able to test every single circumstance.
  18. Offline


    Deathcontrol 1.3
    CB 1185

    There is a bug with the CONTACT flag:

    15:47:17 [WARNING] [DeathControl] 1 errors in config.yml:
    15:47:17 [WARNING] [DeathControl] -> invalid cause: CONTACT

    # The death causes that are configured by default are just usage examples, they will probably not fit your needs
            keep-inventory: true
            keep-inventory: true
            keep-inventory: true
            keep-inventory: true
            keep-inventory: true
  19. Offline


    Very glad to have found this Plug-in but it doesnt work for me as i want. :'(
    Something is not working with Iconomy plugins, fixes the price will death but the harvested amount of money not down now maybe you can help? ;)
  20. Offline


    Noticed the same.
  21. Offline


    • Teleport after death: So it's possible to decide if the user respawn on spawn, home or specific position.
  22. @audial @crazyish I renamed the cause from CONTACT to CACTUS, but I forgot to change it in the documentation(s). You can safely use CACTUS, I'll upload a version with the fixed help.txt with the next update.
    Thanks for the report!

    What exactly do you mean? What exactly happens and does not happen?
    Also try setting "logging-level" in your config.yml to 2 and then post the console log when someone died.
    And the following information are essential:
    - iConomy version?
    - is Register 1.5 installed as a plugin and properly loaded?
    - maybe the player has the "deathcontrol.free" permission (which is the default when being OP). Then they won't be charged any money.
    - What message is the player seeing? Does it say something like "This costs you ..."?

    The pugin is currently only item-related, but there is no reason not to change that ;)
    But the idea would be technically limited to those 4 settings (I can't think of any reasonable other stuff):
    World spawn, bed spawn, absolute coordinates and "do nothing".
    Homes wouldn't work because of the huge amount of home plugins out there, which you can't all hook.
    But if your home plugin supports "respawn at home" options, you could then enable those and simply set DeathControl's handling to "do nothing" when you want to teleport to home.
    I might eventually add it when I feel like it and have spare time.

    Oh, and I plan on integrating a control exp orb drops, I forgot to mention ;)
  23. Offline


    At the moment our server using CommandBooks 1.5.3 built in home-function. But i don't think this is really a problem. If there are players who want to spawn at home they can use your bed-spawn feature, or i see this wrong?
  24. Well, your bed isn't always your plugin home, but that's up to the admins/users of the plugin to apply the features as they like.
  25. Offline


    The creepers kill me and don't let me keep my items.

    DeathControl 1.3
    Bukkit 1185

            keep-inventory: true
            keep-inventory: true
            keep-inventory: true
            keep-inventory: true
            keep-inventory: true
            keep-inventory: true
            keep-inventory: true
            keep-inventory: true
            keep-inventory: true
            keep-inventory: true
            keep-inventory: true
            keep-inventory: true
            keep-inventory: true
            keep-inventory: true
  26. @audial Looks like I forgot a check when the child isn't defined at all ...
    Fixed in 1.31. Uploading at the moment.
  27. Offline


    Thank you for the update! :)
    Bone008 likes this.
  28. Offline


    Thought its no critical issue, but i would like to work with simplyfied configs.
    Instead of defining the behaviour of your plug in for each death cause, it would be smoother to have an "ALL" death cause which will be used, if nothing else is defined (=as default)
  29. I also thought of that and it will be there pretty soon, because it will be relatively easy to implement with the existing structure of parent/child causes - which aren't really used that much in 1.31.

    So yup, great idea - will come soon.
  30. Offline


    Is there a way to use this so that when a player dies, his items disappear. As in they don't drop, and they aren't kept in his inventory?

Share This Page