[INACTIVE][MECH] FriendlyCreepers v1.00 - [#135]

Discussion in 'Inactive/Unsupported Plugins' started by Hidendra, Jan 24, 2011.

  1. Offline

    Hidendra

    FriendlyCreepers
    github: https://github.com/Hidendra/FriendlyCreepers

    Tested on CraftBukkit #135, should work on earlier builds


    The creepers have decided to become diplomatic among Minecrafters.
    They, with their power of explosions have decided it be best to unite and prevent the earthly terrain from being destroyed any longer.

    Still hostile, their resolve was not to be completely docile: they still seek to kill.

    Features
    • Damage from explosion is applied normally
    • Prevent Creeper land damage by config option (on by default)
    • Prevent TNT land damage by config option (on by default)

    Configuration (open)
    Located in plugins/FriendlyCreepers/config.ini
    • enable-tnt default: false
    • enable-creepers default: false


    Download
    https://github.com/Hidendra/FriendlyCreepers/raw/master/dist/FriendlyCreepers.jar

    Changelog (open)
    1.00
    • Initial release


    enjoy.
     
    Ape3000 likes this.
  2. Offline

    Arcwolf

    [INFO] This server is running Craftbukkit version git-Bukkit-0.0.0-393-gbba70c8-b304 (MC: 1.2_01)

    Seems to be nerfing fine for me. Tested just now on 5 creepers around the area. Each Went SSSSSssss, flickered white, puffed up and vanished. No terrain damage. However there was also no BOOOM! sound either. Strange, but I still was injured so no big deal.
     
  3. Offline

    ricky_hobby

    Thanks for the nice plugin!

    I seen the same thing as Arcwolf in later versions of CB. I wonder if CB 278 broke it as the change log says something about changing how canceled explosions are handled - specifically that they are no longer sent by the server.

    Perhaps there is a workaround as I think that the creeper should still go boom and explode so the player knows that has happened.

    Rick
     
    jjd2022 likes this.
  4. Offline

    culturespy

    The CB change you're talking about works around an issue with the client-side prediction of explosions. Before, if a plugin canceled an explosion the client would still predict the effects of the explosion (damaged terrain, etc). This leaves the player doing the "creeper dance" until it got the next update from the server. The change stops the server from sending an explosion packet. This stops the prediction, but unfortunately it also stops the sound effect. Can't have one without the other.

    There's another event - EXPLOSION_PRIMED - that can nerf explosions by changing the explosion radius. Setting the radius to zero would set off the sound effect, but no damage would be done. Unfortunately, this plugin's mission statement indicates that the author wants players to continue to take damage. Using EXPLOSION_PRIMED in this way would take away all creeper damage, including damage done to players.
     
  5. Offline

    awem

    How about changing the explosion radius to 0 and applying damage the players in a certain range simultaneously?
     
  6. Offline

    culturespy

    I'm afraid the range of possible solutions is severely constrained by the structure of the existing minecraft server code, which was not written with Bukkit in mind. In order to tell what entities to apply damage to, the radius cannot be zero.

    I had a thought... It would be possible for CB to watch for canceled explosions and then send a" dummy" zero-size explosion packet. But it's hard to know what the plugin's intentions are without adding more flags and variables to the event. In any case, the code for this would probably be ugly enough that the Bukkit devs wouldn't accept it.

    An ambitious enough plugin might be able to do what you suggest by basically reimplementing the player damage part of the explosion for itself. This hypothetical plugin would set creeper explosions to zero radius. But before returning control to Bukkit, the plugin would search the area around the creeper for entities much like the server does, and apply the damage itself (assuming that is possible with a plugin). This would give the best of both worlds: sound effects and health loss, without terrain damage or client side prediction induced lag.
     
  7. Offline

    Jobsti

    Possible at the meantime?
    But only need for creepers, the TNT is blocked by the WG blacklist for some groups.
     
  8. Offline

    SpiiderPig

    Is anyone using that on Bukkit Build 323 or newer ? I wonder if its still works :)
     
  9. Offline

    plavone

    i can confirm on #361
    did not get any other anti-creeper-block-dmg (WorldGuard, Essentials, CreeperNerf) running, this works and seems not doing any dmg on blocks (on creepers) instead of a rollback
     
  10. Update for build 400+ please!
     
  11. Offline

    barghest

    I believe this suggestion is precisely what the other poster was suggesting. Explode with a radius of 0, so the explosion superficially "looks" right - then hurt players in range "by hand," as it were, with a separate "HURT PLAYER" command with a similar radius to the creeper explosion.

    I know there was a creeper-nerfing plugin for hMod that did exactly this - it might've even been called "CreeperNerf." Anyway, the one I'm thinking of, the author was happy because he/she figured out how to assign the source for the 'magical damage' from the cancelled explosion, to "explosion type" damage. So anything that checked for being damaged from explosion would detect it right. With the first couple versions, this plugin literally just cancelled the explosion and then told all players in range they lost health.

    Even that would be a satisfactory way to do what you suggest here, though, since the only thing that'd be affected by a faked explosion with a bogus damage type... would be those plugins that tell everyone on the server how you just got killed.
     
  12. Offline

    arthoz

    Found a tiny issue: Paintings, more specific, they dont get reset after explosion.
     
  13. Offline

    Kenan

    An update for the stupidly long constructor would be nice :)
     
  14. Offline

    Asara

    An update so it will work with CB 450 would be nice, too.

    Code:
    Could not load plugins\FriendlyCreepers.jar in plugins: null
    org.bukkit.plugin.InvalidPluginException
        at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:80)
        at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:129)
        at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:94)
        at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:59)
        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)
    Caused by: java.lang.NoSuchMethodException: com.griefcraft.FriendlyCreepers.<init>()
        at java.lang.Class.getConstructor0(Unknown Source)
        at java.lang.Class.getConstructor(Unknown Source)
        at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:75)
    
     
    rct2guy likes this.
  15. Offline

    prexX

  16. Offline

    sk8r2k11

    Broken on CB Build 450 - Stupidly long constructor. Nag nag nag. fix please.
     
    rct2guy likes this.
  17. Offline

    dxfire

    I really hope this isn't abandoned! :D
    Because SafeKaboom blocks creepers, yes, but also TNT! And that sucks :(
    Keep up the good work! And thanks alot for LWC!

    Oh, and... uh... *nag*
     
  18. Offline

    godgodgodgo

    2011-02-27 20:37:40 [INFO] Starting minecraft server version Beta 1.3
    2011-02-27 20:37:40 [INFO] Loading properties
    2011-02-27 20:37:40 [INFO] Starting Minecraft server on *:25565
    2011-02-27 20:37:40 [INFO] This server is running Craftbukkit version git-Bukkit-0.0.0-458-g557f3d2-b440jnks (MC: 1.3)
    2011-02-27 20:37:40 [INFO] Preparing level "foo"
    2011-02-27 20:37:40 [INFO] Preparing start region
    2011-02-27 20:37:41 [WARNING] Using the stupidly long constructor com.echo28.bukkit.findme.FindMe(PluginLoader, Server, PluginDescriptionFile, File, File, ClassLoader) is no longer recommended. Go nag the plugin author of FindMe to remove it! (Nothing is broken, we just like to keep code clean.)
    2011-02-27 20:37:41 [WARNING] Using the stupidly long constructor com.griefcraft.FriendlyCreepers(PluginLoader, Server, PluginDescriptionFile, File, File, ClassLoader) is no longer recommended. Go nag the plugin author of FriendlyCreepers to remove it! (Nothing is broken, we just like to keep code clean.)
    2011-02-27 20:37:41 [WARNING] Using the stupidly long constructor com.FriedTaco.taco.godPowers.godPowers(PluginLoader, Server, PluginDescriptionFile, File, File, ClassLoader) is no longer recommended. Go nag the plugin author of godPowers to remove it! (Nothing is broken, we just like to keep code clean.)
    2011-02-27 20:37:41 [INFO] LWC [v1.57] Loading shared objects
    2011-02-27 20:37:41 [INFO] Config [v1.57] Loaded 12 config entries
    2011-02-27 20:37:41 [INFO] LWC [v1.57] Native library: lib/native/Windows/x86/sqlitejdbc.dll
    2011-02-27 20:37:41 [WARNING] Using the stupidly long constructor com.bukkit.DeathCradle.MultipleHomes.MultipleHomes(PluginLoader, Server, PluginDescriptionFile, File, File, ClassLoader) is no longer recommended. Go nag the plugin author of MultipleHomes to remove it! (Nothing is broken, we just like to keep code clean.)
    2011-02-27 20:37:41 [WARNING] Using the stupidly long constructor com.onarandombox.Rigby.MultiVerse.MultiVerse(PluginLoader, Server, PluginDescriptionFile, File, File, ClassLoader) is no longer recommended. Go nag the plugin author of MultiVerse to remove it! (Nothing is broken, we just like to keep code clean.)
    2011-02-27 20:37:41 [INFO] Hint! It's probably someone called 'Rigby'
    2011-02-27 20:37:41 [WARNING] Using the stupidly long constructor me.taylorkelly.mywarp.MyWarp(PluginLoader, Server, PluginDescriptionFile, File, File, ClassLoader) is no longer recommended. Go nag the plugin author of MyWarp to remove it! (Nothing is broken, we just like to keep code clean.)
    2011-02-27 20:37:41 [WARNING] Using the stupidly long constructor cz.Plague.bukkit.PlgSetspawn.PlgSetspawn(PluginLoader, Server, PluginDescriptionFile, File, File, ClassLoader) is no longer recommended. Go nag the plugin author of PlgSetspawn to remove it! (Nothing is broken, we just like to keep code clean.)
    2011-02-27 20:37:41 [WARNING] Using the stupidly long constructor com.bukkit.silence.simplehome.SimpleHome(PluginLoader, Server, PluginDescriptionFile, File, File, ClassLoader) is no longer recommended. Go nag the plugin author of SimpleHome to remove it! (Nothing is broken, we just like to keep code clean.)
    2011-02-27 20:37:41 [WARNING] Using the stupidly long constructor org.bukkit.xmlns.spawnmob.SpawnMob(PluginLoader, Server, PluginDescriptionFile, File, File, ClassLoader) is no longer recommended. Go nag the plugin author of SpawnMob to remove it! (Nothing is broken, we just like to keep code clean.)
    2011-02-27 20:37:41 [INFO] Hint! It's probably someone called 'xmlns'
    2011-02-27 20:37:41 [WARNING] Using the stupidly long constructor com.bukkit.nossr50.vStopFire.vStopFire(PluginLoader, Server, PluginDescriptionFile, File, File, ClassLoader) is no longer recommended. Go nag the plugin author of vStopFire to remove it! (Nothing is broken, we just like to keep code clean.)
    2011-02-27 20:37:41 [WARNING] Using the stupidly long constructor com.bukkit.silence.whitelist.Whitelist(PluginLoader, Server, PluginDescriptionFile, File, File, ClassLoader) is no longer recommended. Go nag the plugin author of Whitelist to remove it! (Nothing is broken, we just like to keep code clean.)
    2011-02-27 20:37:41 [INFO] WorldGuard loaded.
    2011-02-27 20:37:41 [INFO] ChatBukkit v0.0.1 is enabled!
    2011-02-27 20:37:41 [INFO] [Cleaner] version [1.7] (Hit) loaded
    2011-02-27 20:37:41 [INFO] CraftBukkitUpToDate version 1.8 is enabled!
    2011-02-27 20:37:41 [INFO] GroupManager - Scheduled Data Saving is set for every 10 minutes!
    2011-02-27 20:37:41 [INFO] GroupManager version 0.99c is enabled!
    2011-02-27 20:37:41 [INFO] Fake Permissions version 2.4 is enabled!
    2011-02-27 20:37:42 [INFO] CButD: CraftBukkit is up to Date
    2011-02-27 20:37:42 [INFO] §eLoaded Essentials build 240 maintained by Zenexer, ementalo, Aelux, and Brettflan
    2011-02-27 20:37:42 [INFO] Loaded EssentialsBan build 240 by Zenexer, ementalo, Eris, and EggRoll
    2011-02-27 20:37:42 [INFO] Loaded EssentialsChat build 240 by Zenexer, ementalo, Aelux, and Brettflan
    2011-02-27 20:37:42 [INFO] Loaded EssentialsEco build 240 by Zenexer, ementalo, Aelux, and Brettflan
    2011-02-27 20:37:42 [INFO] Loaded EssentialsGod build 240 by Zenexer, ementalo, Eris, and EggRoll
    2011-02-27 20:37:42 [INFO] Fake Permissions version 2.0 is enabled!
    2011-02-27 20:37:42 [INFO] Loaded EssentialsHelp build 240 by Zenexer, ementalo, Eris, and EggRoll
    2011-02-27 20:37:42 [INFO] Loaded EssentialsHome build 240 by Zenexer, ementalo, Aelux, and Brettflan
    2011-02-27 20:37:42 [INFO] Loaded EssentialsProtect build 240 maintained by Zenexer, ementalo, Aelux, and Brettflan
    2011-02-27 20:37:43 [INFO] EssentialsServerlist version 240 by Vimae Development enabled.
    2011-02-27 20:37:43 [INFO] Loaded EssentialsSpawn build 240 maintained by Zenexer, ementalo, Aelux, and Brettflan
    2011-02-27 20:37:43 [INFO] Loaded EssentialsTele build 240 by Zenexer, ementalo, Aelux, and Brettflan
    2011-02-27 20:37:43 [INFO] Loaded EssentialsWarp build 240 by Zenexer, ementalo, Aelux, and Brettflan
    2011-02-27 20:37:43 [INFO] FindMe 1.2.3 loaded.
    2011-02-27 20:37:43 [INFO] [FriendlyCreepers] -> ENTITY_EXPLODE
    2011-02-27 20:37:43 [INFO] [FriendlyCreepers] Creepers are: Neutralized
    2011-02-27 20:37:43 [INFO] [FriendlyCreepers] TNT is: Neutralized
    2011-02-27 20:37:43 [SEVERE] ENTITY_DAMAGEDBY_BLOCK (Is it up to date?)
    java.lang.NoSuchFieldError: ENTITY_DAMAGEDBY_BLOCK
    at com.FriedTaco.taco.godPowers.godPowers.onEnable(godPowers.java:121)
    at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:140)
    at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:426)
    at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:187)
    at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:79)
    at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:60)
    at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:187)
    at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:174)
    at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:120)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:227)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:366)
    2011-02-27 20:37:43 [INFO] Done (2941032310ns)! For help, type "help" or "?"
    2011-02-27 20:37:52 [INFO] CButD: Plugin-Update-Check started
    2011-02-27 20:37:52 [INFO] No source for chatbukkit.jar ask the Author to give me one
    2011-02-27 20:37:52 [INFO] No source for Cleaner.jar ask the Author to give me one
    2011-02-27 20:37:56 [INFO] No source for FindMe.jar ask the Author to give me one
    2011-02-27 20:37:56 [INFO] No source for FriendlyCreepers.jar ask the Author to give me one
    2011-02-27 20:37:56 [INFO] No source for godPowers.jar ask the Author to give me one
    2011-02-27 20:37:56 [INFO] No source for JuggernautSpirit.jar ask the Author to give me one
    2011-02-27 20:37:57 [INFO] No source for MultipleHomes.jar ask the Author to give me one
    2011-02-27 20:37:57 [INFO] No source for MultiVerse.jar ask the Author to give me one
    2011-02-27 20:37:57 [INFO] No source for MyWarp.jar ask the Author to give me one
    2011-02-27 20:37:57 [INFO] No source for PlgSetspawn_21.jar ask the Author to give me one
    2011-02-27 20:37:57 [INFO] No source for scrapbukkit.jar ask the Author to give me one
    2011-02-27 20:37:57 [INFO] No source for SimpleHome.jar ask the Author to give me one
    2011-02-27 20:37:57 [INFO] No source for SpawnMob.jar ask the Author to give me one
    2011-02-27 20:37:58 [INFO] No source for TelePlus.jar ask the Author to give me one
    2011-02-27 20:37:58 [INFO] No source for vStopFire.jar ask the Author to give me one
    2011-02-27 20:37:58 [INFO] No source for Whitelist.jar ask the Author to give me one
    2011-02-27 20:37:58 [INFO] No source for WorldEdit.jar ask the Author to give me one
    2011-02-27 20:37:58 [INFO] No source for WorldGuard.jar ask the Author to give me one
    2011-02-27 20:37:58 [INFO] CButD: Plugin-Update-Check finished
     
  19. Offline

    weasel5i2

    Here, I forked the source and compiled it against Craftbukkit build 440. It can be downloaded here:

    http://weasel.net/minecraft/FriendlyCreepers_w5i2-bukkit440.zip - source code is included.

    I didn't change anything in the code other than remove the Stupidly Long Constructor. I did, however, rename the forked class to net.weasel.FriendlyCreepers.

    --W5i2
     
  20. Offline

    godgodgodgo

    Thanks :)
     
  21. Offline

    SpiiderPig

    Did anyone try'd that Plugin on the latest recommend Build (493) ? :)
     
  22. Offline

    zeph

    Ghast's Fireball?
     
  23. Offline

    vinic

    This rules, please keep it updated.

    And MultiVerse support would be sweeeeeeeeet.
     
  24. Offline

    ReapKarmah

    Doesn't load on CB 522 :(
     
  25. Offline

    Ape3000

    It works with my CB 531.
     
  26. Offline

    ReapKarmah

    Doesn't work for CB 531 for me at least:

    Code:
    15:02:16 [INFO] Starting minecraft server version Beta 1.3
    15:02:16 [INFO] Loading properties
    15:02:16 [INFO] Starting Minecraft server on *:25565
    15:02:16 [INFO] This server is running Craftbukkit version git-Bukkit-0.0.0-516-
    gdf87bb3-b531jnks (MC: 1.3)
    15:02:17 [SEVERE] Could not load plugins\FriendlyCreepers.jar in plugins: null
    org.bukkit.plugin.InvalidPluginException
            at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.j
    ava:113)
            at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.
    java:159)
            at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager
    .java:107)
            at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:59)
            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)
    Caused by: java.lang.NoSuchMethodException: com.griefcraft.FriendlyCreepers.<ini
    t>()
            at java.lang.Class.getConstructor0(Unknown Source)
            at java.lang.Class.getConstructor(Unknown Source)
            at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.j
    ava:108)
            ... 8 more
     
  27. Offline

    EcoMaster21

    That fix works on 602 as well, it seems. Neat!
     
  28. Offline

    SpiiderPig

    One of my favorite plugins is still working on Build 701 :)
     
  29. Offline

    Specops343

    Works on 740, amazing.
     
  30. Offline

    SmartyGeek

    Installing now!
     

Share This Page