Inactive [MECH] PlgColdLightning v2.0 - lightning does not cause fires [1.4]

Discussion in 'Inactive/Unsupported Plugins' started by Plague, Apr 22, 2011.

     
  1. Offline

    Plague

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    PlgColdLightning - Plugin to stop lightning from starting a fire
    Version: v2.0

    This is currently only useful when you have a plugin that can strike lightning, like PlgEssentials. Lightning will not cause fires. It will look like there is fire for a little while, but that's just client graphics.

    Download(source inside)

    [IMG]

    Changelog:

    Version 2.0
    • updated to new bukkit API
    Version 1.0
    • Initial release

    This post has been edited 2 times. It was last edited by Plague Feb 20, 2012.
  2.  
  3. Offline

    xPaw

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Installed, thanks.
  4. Offline

    wears_Fedora

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Friggin awesome.

    Will this prevent pig -> pigman and creeper -> electro-creeper?
  5. Offline

    Plague

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    No this only checks starting fires.
  6. Offline

    Andre_9796

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Downloaded, thanks.
  7. Offline

    wears_Fedora

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    The, perfection. A huge thanks.
    Installed and testing now.
  8. Offline

    Arcwolf

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    thank God... This is what I've been waiting for. So many cities I have made of cloth or wood. Cripes... if lightning struck any one of them it would be like something out of a apocalypse movie. O_O so many hours wasted <shivers>

    ! Downloaded ! ... still keeeping a backup of my world though :D ... you know, just to be safe :p
  9. Offline

    Plague

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Of course, you should all test it first to make sure it does stop lightning for you. I did test it a bunch, but still, losing a minecraft creations is like.... well you know ;)
  10. Offline

    wears_Fedora

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    I have a server with no man made structures that aren't stone, so I'll test it there and let you know if forests are still burning down. :)
  11. Offline

    oliverw92

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Could you make it world specific?
    AS1LV3RN1NJA likes this.
  12. Offline

    Plague

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    It should be since I use world.setStorm() and such...
  13. Offline

    Nathan C

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Thanks a lot!
  14. Offline

    halvors

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Lightning never start's fires by default. What exactly is this doing? Still see fire when Lightning but no spread.
  15. Offline

    Plague

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Ligtning does start fires for me, I tested that and then made this plugin...

    The fire you see looks like a client thing, just an animation. Server stops the fire from happening.
  16. Offline

    wears_Fedora

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    I've witnessed several forest fires from lightning strikes with default bukkit and no plug ins.
  17. Offline

    halvors

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Ok. But not happend to me yet...
  18. Offline

    Expatcat

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    I keep getting this error periodically:

    Could not pass event BLOCK_IGNITE to PlgColdLightning
    java.lang.NoSuchFieldError: LIGHTNING
    at cz.Plague.bukkit.PlgColdLightning.PlgColdLightningBlockListener.onBlockIgnite(PlgColdLightningBlockListener.java:14)
    at org.bukkit.plugin.java.JavaPluginLoader$30.execute(JavaPluginLoader.java:380)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:59)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:257)
    at net.minecraft.server.BlockStationary.a(BlockStationary.java:65)
    at net.minecraft.server.World.j(World.java:1650)
    at net.minecraft.server.World.doTick(World.java:1463)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:361)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:285)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:394)
  19. Offline

    halvors

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Think you have an old build of CraftBukkit. You have to run CraftBukkit #709 which is not set as recommend yet.
  20. Offline

    Lying_Cake

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    THANK YOU. Our harbor burned down and our avatar tree is at risk!
  21. Offline

    Rabb

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    I apologize if this is the wrong place, but do you know of a plugin that allows weather to be completely stopped/removed?
  22. Offline

    Plague

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    There is none, but you can use a normal weather plugin (or my PlgEssentials) to set the duration of sunny weather to a really big number of seconds...
  23. Offline

    Rabb

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Does it have no limit, time wise? As in I could set it for an amount of seconds that is basically infinite?
  24. Offline

    Plague

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    It is limited by the variable, so I think the highest value is 2147483648, but in seconds that's 35 791 394 (414 days)
  25. Offline

    halvors

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Isn't this called only when a player cause lightning?
  26. Offline

    Plague

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Nope, It's called whenever there is a fire caused by lightning
  27. Offline

    halvors

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    If it's only when caused by lightning, why do you have function getPlayer() in BlockIgniteEvent?
  28. Offline

    halvors

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    And seems like BlockIgniteEvent not is called when using world.strikeLightning(Location);
  29. Offline

    Plague

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    because it's inherited from generic event

    I tested it causing lightning to hit using just this function, so trust me it IS called :)
  30. Offline

    halvors

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Not for me... When i set the event to System.out.println("Test"); Nothing happends...
  31. Offline

    halvors

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    When use world.strikeLightning(Location); function trees are not burning up, seems liek event is cancelled buy default...

Share This Page