Hello, I was hoping someone here could make a plugin for me. Here's the basic idea of it: Players on the surface at day time have a chance of spontaneously combusting every X minutes. The plugin will have a config.yml file where players can define the following: * Number of minutes before plugin randomly combusts someone * Whether the player has to be on the surface or not to combust * Minimum number of players that have to be on the server for a combustion to happen (e.g, if one player is on the server and x minutes have passed, and the server owner only wants a combustion to happen if 2 players are online, the player won't combust.) * A customizable message for the player who combusts to receive upon combusting. Also, if possible, it would be nice if the plugin's timer weren't affected by reloads Also, I'd like if you'd keep the plugin updated as well EDIT by Moderator: merged posts, please use the edit button instead of double posting.
is like a radiation plugin? i should have a code like that, but if i remember in plugin list there should be a Fall-out / Radiation / Sun combust plugin... just check and tell if there is
There is one in the plugin list that does this, but it is very buggy and the author isn't maintaining it any more :I
Has anyone made this for you yet? If not I'll take a stab at it. Also by "combusting" you just mean die right? TelephoneKiosk
Or maybe it could check light level. I think the light produced by the sun is brighter than light produced by anything else isn't it?
sunlight + fire + lava + glowstone + redstone lamp + jack-o-lantern = light level 15 They all have the same light level...
Yessir. They'd have to be in direct sunlight for it to happen though. Not sure how you could determine when they are :/ Maybe check light level, which layer they're on, and if there's a block above them?
http://dev.bukkit.org/server-mods/sunburn-reborn/ http://dev.bukkit.org/server-mods/spontaneous-combustion/ EDIT by Moderator: merged posts, please use the edit button instead of double posting.
I think this plugin is a bit different. The one you linked burns and player on the surface, while the one I'm requesting burns one random player every X minutes. This is the buggy, inactive one I mentioned earlier.
Did you? Anyways, the only thing the dev would have to do it look up the code used by the sunburn plugin and add a for loop of the online players, call a random int and a scheduler...
Meh, don't think too much about it... Took me a while to get used to them, now I need to learn HOW to use them
Yes it is easy ... but personally im working on another plugin right now, i cant divide my time in several plugins and doing no one XD
TelephoneKiosk Download: http://dl.dropbox.com/u/41947783/SpontaneousCombustion.jar Currently it works as I have tested it with 1 player online. How it will behave with multiple players should be the same, if you have any issues PM me or respond to this thread. I'll be happy to fix them. The only thing I was not able to address from what you suggested was reloads not effecting the timer.
How many blocks need to be above their head inorder for them to be considered "undergroud". I suggest keeping it 3 or above because if they stand under a tree that is 2 blocks above their head.