Inactive [SEC] CreeperHeal v4.13 - Repair Creeper damage, the natural way! [1.2.5]

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

  1. Offline

    Nitnelave

    CreeperHeal


    The project in now on BukkitDev! Go there to find all the news, downloads, error reporting, and everything else!
     
  2. Offline

    Nitnelave

    Oh, and v2.0.3 is out, fixing the TNT that was triggered that didn't get replaced (only those triggered by the explosion). Perfect for auto-resetting traps, now! Just a thing : the TNT will respawn where it exploded, not where it was triggered. I'll work on that. In the mean time, if you set a bunch of tnt to explode with replace-tnt to true, you will get the TNT scattered in the nature. Also added an alias for /ch forceHeal : a simple /ch heal will suffice now.

    Erm... no?

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

    redcrew

    finally the plugin I've looked for[tnt][creeper]
     
  4. Offline

    water

    nice work :D

    but I want to know how to make it ...

    I used [onEntityExplode] then I don't know how to save the blocks been broken by Explode...

    I use event.blockList.(then what can I do here..?)

    could you help me :(?

    I'm not very good at Engilsh sor..
    and not good at bukkit and JAVA..
     
  5. Offline

    Asterdom

    Wow what a plugin! This should be implemented automatically into the main game!

    Anyways i hope you continue to support it as its one of the better (but more complex) ideas.

    Im loving it thus far, havnt had any major issues, thanks again!
     
  6. Offline

    Nitnelave

    Well, you can always look at the source, it's free for all, and there's a link at the top. Otherwise, if you want to do it yourself from the basics, you should consider using a Hashmap with some key specific to the explosion (I use the time, as I check for it later, but you could use the location), and as the value the block list, except that you'll want to capture the blockstates instead (block.getState()). If you have any more question, please PM me, as it isn't really fit for a forum topic (unless a specific one, you could also do that). Oh, and if you're French, I am too.
     
  7. Offline

    Nitnelave

    New Update! v2.1!
    Should address all issues so far. Added teleportation out of blocks for block per block replacement too.
    WARNING! Now the interval setting also affects block per block replacement, so if you want to keep it as it is, type in-game /ch interval 0

    @Senladar I'm working with the dev of MobArena to see if a better solution is possible. Don't spawn items ONLY inside the arenas.

    @Senladar
    UPDATE v2.2 : Added support for MobArena : ignores explosions inside an arena.

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

    thedarkdima

    i found 2 errors
    first:
    Code:
    [SEVERE] java.util.ConcurrentModificationException
    2011-07-17 04:55:11 [SEVERE]     at java.util.HashMap$HashIterator.remove(Unknown Source)
    2011-07-17 04:55:11 [SEVERE]     at com.nitnelave.CreeperHeal.CreeperHeal.check_replace(CreeperHeal.java:445)
    2011-07-17 04:55:11 [SEVERE]     at com.nitnelave.CreeperHeal.CreeperHeal$1.run(CreeperHeal.java:119)
    2011-07-17 04:55:11 [SEVERE]     at org.bukkit.craftbukkit.scheduler.CraftWorker.run(CraftWorker.java:34)
    2011-07-17 04:55:11 [SEVERE]     at java.lang.Thread.run(Unknown Source)
    2011-07-17
    it don't do any problem
    second:
    Code:
    [SEVERE] java.lang.NullPointerException
    2011-07-17 04:59:50 [SEVERE]     at net.minecraft.server.World.a(World.java:1630)
    2011-07-17 04:59:50 [SEVERE]     at net.minecraft.server.World.a(World.java:1604)
    2011-07-17 04:59:50 [SEVERE]     at net.minecraft.server.World.a(World.java:576)
    2011-07-17 04:59:50 [SEVERE]     at net.minecraft.server.MetadataChunkBlock.a(SourceFile:104)
    2011-07-17 04:59:50 [SEVERE]     at net.minecraft.server.World.doLighting(World.java:1592)
    2011-07-17 04:59:50 [SEVERE]     at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:443)
    2011-07-17 04:59:50 [SEVERE]     at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:361)
    2011-07-17 04:59:50 [SEVERE]     at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    2011-07-17 04:59:50 [SEVERE] Unexpected exception
    java.lang.NullPointerException
        at net.minecraft.server.World.a(World.java:1630)
        at net.minecraft.server.World.a(World.java:1604)
        at net.minecraft.server.World.a(World.java:576)
        at net.minecraft.server.MetadataChunkBlock.a(SourceFile:104)
        at net.minecraft.server.World.doLighting(World.java:1592)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:443)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:361)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    
    this one is killing my server and i need to start it over i made an check and 100% that its this plugin or the bukkit because i only used this plugin in the check when you blow tnt or the CreeperHeal heal an area and you go to other world its makes this Error.

    Oh right got last version of bukkit 1.7.2.
     
  9. Offline

    Nitnelave

    Did you get the last version of CreeperHeal too? it should take care of the first error. For the second, I have absolutely no clue as to what is causing it, and I just checked by going to the nether and the skylands, and it didn't throw an error. Can you give me exact steps to reproduce it?
     
  10. Offline

    thedarkdima

    ye i used last version.
    i took TNT ALOT OF TNT I BLOW TNT and went to other world again or this is because area data save or because area Heal.
     
  11. Offline

    Nitnelave

    Do you have it set to block-per-block or all at once? were you the only one on the server? did you go to another world right after blowing the tnt, before (or while) it was replaced? The other world, was it the nether, or something like that? Is the error thrown at the time of the explosions, or at the time of the replacement? If you don't know, you can try increasing the log-level in the config, it will tell you everything. And lastly, do you have TNT_replace set to true? (does the tnt re-appear?)
     
  12. Offline

    thedarkdima

    my set is all block at once. i was the only one but same problem was when i was with some friends. i am not sure you need too check it out play around with tnt and Nether portal (if you ask me I think the error because the replace). i made a check on Nether and on Skyland so its in the process of getting from one world too other. you already asked that i am not sure myself you need to check that. tell me more about the log i will try it. TNT_replace=false.
    if you need more info ask (don't forget to tell me how to increasing the log-level in the config).
     
  13. Offline

    Nitnelave

    Ok, I should have everything I need. Just for info, though, in the plugin/CreeperHeal folder, there's the config.yml, and you can change the value log-level to something higher, 1 is recommended.

    Ok, I can't update this weekend, but I have a solution in mind to try, so I think next weekend you'll be set. It should have nothung to do with changing world, it's just the huge explosion of tnt that overwhelms craftbukkit.

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

    thedarkdima

    O_O weird ... but who cares Thanks ^_^ oh and your plugin is very good, continue with the hard Work .
     
  15. Offline

    Neils

    Is this Plugin working with Build 1000 ?
     
  16. Offline

    Nitnelave

    It should be, I don't think they changed anything I used, but feel free to test it and report (I can't right now).
     
  17. Offline

    Neils

    Yes it seems to work
     
  18. Offline

    Pezmc

    This is on CB 1000

    Code:
    23:33:10 [SEVERE] java.util.ConcurrentModificationException
    23:33:10 [SEVERE]       at java.util.HashMap$HashIterator.remove(HashMap.java:828)
    23:33:10 [SEVERE]       at com.nitnelave.CreeperHeal.CreeperHeal.replace_burnt(CreeperHeal.java:786)
    23:33:10 [SEVERE]       at com.nitnelave.CreeperHeal.CreeperHeal$2.run(CreeperHeal.java:148)
    23:33:10 [SEVERE]       at org.bukkit.craftbukkit.scheduler.CraftWorker.run(CraftWorker.java:34)
    23:33:10 [SEVERE]       at java.lang.Thread.run(Thread.java:636)
    Getting this every time an explosion happens (I think)

    Also getting the below every now and then which kills the server (deffo your plugin)

    Code:
    23:36:27 [SEVERE] Unexpected exception
    java.lang.IllegalStateException: TickNextTick list out of synch
            at net.minecraft.server.World.a(World.java:1961)
            at net.minecraft.server.World.doTick(World.java:1722)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:441)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:361)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
     
  19. Offline

    SplenectomY

    "Magic explosions" don't seem to cover the explosions from arrows in EffectiveArrows (plugin). I also tried to toggle all the other types on (TNT, ghast, creeper), to no avail. Any possibility of including this type of explosion (whatever it might be) in the future? Thanks!

    Edit: Just so you know, I tested all its other functions and its working fine. However I do get this in console once in a while:

    Code:
    08:48:01 [SEVERE] java.util.ConcurrentModificationException
    08:48:01 [SEVERE]       at java.util.HashMap$HashIterator.nextEntry(HashMap.java:810)
    08:48:01 [SEVERE]       at java.util.HashMap$KeyIterator.next(HashMap.java:845)
    08:48:01 [SEVERE]       at com.nitnelave.CreeperHeal.CreeperHeal.replace_burnt(CreeperHeal.java:771)
    08:48:01 [SEVERE]       at com.nitnelave.CreeperHeal.CreeperHeal$2.run(CreeperHeal.java:148)
    08:48:01 [SEVERE]       at org.bukkit.craftbukkit.scheduler.CraftWorker.run(CraftWorker.java:34)
    08:48:01 [SEVERE]       at java.lang.Thread.run(Thread.java:636)
    08:48:03 [SEVERE] java.util.ConcurrentModificationException
    08:48:03 [SEVERE]       at java.util.HashMap$HashIterator.remove(HashMap.java:828)
    08:48:03 [SEVERE]       at com.nitnelave.CreeperHeal.CreeperHeal.replace_burnt(CreeperHeal.java:776)
    08:48:03 [SEVERE]       at com.nitnelave.CreeperHeal.CreeperHeal$2.run(CreeperHeal.java:148)
    08:48:03 [SEVERE]       at org.bukkit.craftbukkit.scheduler.CraftWorker.run(CraftWorker.java:34)
    08:48:03 [SEVERE]       at java.lang.Thread.run(Thread.java:636)
    
     
  20. Offline

    Nitnelave

    It should actually be when a block burns (or when it tries to replace it). I fixed this for explosions, but I forgot to do it for burns... I'll try and have it out on Friday night, else later this week-end.
    For the next error, please do test that it's my plugin, but I may have a solution for this.

    For the error, same as above, and for the EffectiveArrows, ask the dev if the explosion is throwing an EntityExplodeEvent, and if yes, then what type of entity. If it doesn't throw an event, then I can't do anything about it.
     
    SplenectomY likes this.
  21. Offline

    Kregme

    I have to say that I really like this plugin ! I have been using it on my server for some time now and it just works ! :) There can be a slight problem with regenerating redstone dust, but its not too bad..! :)

    Thanks alot for this..

    Kregme
     
  22. Offline

    Nitnelave

    Don't worry, I should improve the code soon for this. I don't really know if it'll fix it, but I'll try anyway.
     
  23. Offline

    Poeschl

    I have this errror on #1000:

    Code:
    2011-07-21 19:37:20 [SEVERE] java.lang.NullPointerException
    2011-07-21 19:37:20 [SEVERE]     at org.bukkit.craftbukkit.entity.CraftEntity.getNearbyEntities(CraftEntity.java:149)
    2011-07-21 19:37:20 [SEVERE]     at com.nitnelave.CreeperHeal.CreeperHeal.check_player_one_block(CreeperHeal.java:529)
    2011-07-21 19:37:20 [SEVERE]     at com.nitnelave.CreeperHeal.CreeperHeal.replace_one_block(CreeperHeal.java:521)
    2011-07-21 19:37:20 [SEVERE]     at com.nitnelave.CreeperHeal.CreeperHeal.check_replace(CreeperHeal.java:495)
    2011-07-21 19:37:20 [SEVERE]     at com.nitnelave.CreeperHeal.CreeperHeal$1.run(CreeperHeal.java:139)
    2011-07-21 19:37:20 [SEVERE]     at org.bukkit.craftbukkit.scheduler.CraftWorker.run(CraftWorker.java:34)
    2011-07-21 19:37:20 [SEVERE]     at java.lang.Thread.run(Unknown Source)
    2011-07-21 19:37:20 [SEVERE] java.lang.NullPointerException
    2011-07-21 19:37:20 [SEVERE]     at org.bukkit.craftbukkit.entity.CraftEntity.getNearbyEntities(CraftEntity.java:149)
    2011-07-21 19:37:20 [SEVERE]     at com.nitnelave.CreeperHeal.CreeperHeal.check_player_one_block(CreeperHeal.java:529)
    2011-07-21 19:37:20 [SEVERE]     at com.nitnelave.CreeperHeal.CreeperHeal.replace_one_block(CreeperHeal.java:521)
    2011-07-21 19:37:20 [SEVERE]     at com.nitnelave.CreeperHeal.CreeperHeal.check_replace(CreeperHeal.java:495)
    2011-07-21 19:37:20 [SEVERE]     at com.nitnelave.CreeperHeal.CreeperHeal$1.run(CreeperHeal.java:139)
    2011-07-21 19:37:20 [SEVERE]     at org.bukkit.craftbukkit.scheduler.CraftWorker.run(CraftWorker.java:34)
    2011-07-21 19:37:20 [SEVERE]     at java.lang.Thread.run(Unknown Source)
    this happens after a creeper explosion
     
  24. Offline

    Nitnelave

    Oh, right, I guess I should have made a null check... thanks for the report, I'll fix it this week-end!
     
  25. Offline

    soulreaver797

    Just like to say, this is an awesome plugin.
    I really disliked having creepers that didn't actually blow up... creepers are supposed to blow up! this plugin lets that happen, but at the same time doesn't destroy everyone's hard work.
    hats off to you sir.
     
  26. Offline

    Nitnelave

    That was the exact reason why I made this plugin! I used worldGuard before, with creepers disabled, but who still damaged entities, but it's not the same... You hardly notice they blow up!

    I can't reproduce your bug... Give me a list of your plugins, it may be a conflict.

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

    SplenectomY

    EffectiveArrows appears to be throwing an Entity_Explode event. Here is an unrelated error with some java jargon that might come in handy:

    04:29:54 [SEVERE] Could not pass event ENTITY_EXPLODE to ObsidianDestroyer
    java.lang.NullPointerException
    at pandemoneus.obsidianDestroyer.ODEntityListener.onEntityExplode(ODEntityListener.java:44)
    at org.bukkit.plugin.java.JavaPluginLoader$61.execute(JavaPluginLoader.java:670)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:332)
    at net.minecraft.server.Explosion.a(Explosion.java:195)
    at net.minecraft.server.World.createExplosion(World.java:1467)
    at net.minecraft.server.WorldServer.createExplosion(WorldServer.java:145)
    at org.bukkit.craftbukkit.CraftWorld.createExplosion(CraftWorld.java:416)
    at org.bukkit.craftbukkit.CraftWorld.createExplosion(CraftWorld.java:424)
    at org.bukkit.craftbukkit.CraftWorld.createExplosion(CraftWorld.java:420)
    at me.skeletonofchaos.ea.ArrowTypes.explosive.onGroundHit(explosive.java:44)
    at me.skeletonofchaos.ea.ArrowTypes.all.onBlockContact(all.java:115)
    at me.skeletonofchaos.ea.ArrowEffectApplier.runArrowEffect(ArrowEffectApplier.java:49)
    at me.skeletonofchaos.ea.ArrowEffectApplier.run(ArrowEffectApplier.java:35)
    at org.bukkit.craftbukkit.scheduler.CraftWorker.run(CraftWorker.java:34)
    at java.lang.Thread.run(Thread.java:636)

    EDIT: Also, everytime I type /creeperheal magical on, it outputs that it is set to false, as in I can't change it. Odd.
     
  28. Offline

    Nitnelave

    BugFix update.

    About the magical setting, I was confused, because I used the same code as for TNT setting... but it was so alike that it actually changed the magical setting, but displayed you the TNT one! Fixed in a silent update. I sent a message to the EffectiveArrows dev, waiting for an answer.

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

    slater96

    Amazing plugin, thanks!
     
  30. Offline

    SplenectomY

    Thanks! Can't wait to see these two plugins working together.
     
  31. Offline

    alegomaster

    Fire damage repair is always on true and It doesn't repair any burnt blocks.

    I hope you can fix that but other then that, amazing mod.

    Edit: I just had to edot the config file and it worked
     

Share This Page