Temperature
This plugin tracks the temperature of players and gives potion effects and/or damage if the player does not pass certain conditions.
Temperatures are based off the temperature of the biome that they are in, which can be found here.
There are two types of temperature conditions:
Freezing
Freezing biomes are biomes that naturally snow at sea level.
If a player is caught outside in a freezing biome in a light level 4 and is not wearing full leather armor, then damage will be dealt. Additionally, if the player is caught outside in a snow storm and is in a light level below 7 without a torch in their hand then they will get the blindness effect.
The easiest way to prevent this is pack some leather armor, stay in the light while traveling through snowy biomes, and carry a torch during blizzards.
Overheated
Hot biomes are deserts, jungles, and mess.
If the player is outside while wearing any iron or diamond armor, then they will receive slowness and hunger.
The easiest way to prevent this avoid weaning heavy armor in hot biomes, or stay in the shade.
Configuration
Here is the configuration:
#Every "X" seconds, the plugin will check the entire server's worth of player temperature_check_interval_seconds: 60 #How long should the blindness last when in blizzards? blizzard_blindness_ticks: 300 #How much damage should be taken from freezing? freezing_damage: 2 #How long should the slowness when overheated last? overheated_slowness_ticks: 800 #How long should the hunger when overheated last? overheated_hunger_ticks: 800
Commands and Permissions
/temperature check : sends a message about what your current location's temperature is. Requires the "temperature.check" permission. /temperature reload : reloads the configuration. Requires the "temperature.reload" permission.
"temperature.bypass.freezing" and "temperature.bypass.hot" are permissions that can be given to players which makes them exempt from receiving temperature de-buffs.
Thanks for stopping by! If you have any bugs, suggestions, or questions, message me @xlr20ice on BukkitDev. Enjoy!
Doesnt work , do i need another plugin to make this work?
@TheZerok666
Thanks for suggesting! A timer and some potion effect control sounds like a great idea, and I will work to add it.
Does the player recieve the effects immediately or is there any kind of timer for that? Like, you spend more than 2 minutes in the desert and only then you get overheated? I'm working on a huge roleplay project and I already have a thirst plugin that makes you drink once in a while (you get thirsty faster when in a hot biome), and a temperature plugin would be a great addition!
Also, you should probably let admins enable or disable certain functions. For example, someone doesn't want players to get blinded when they're in a snow storm, or wants another effect, etc.
Either way - this is a great idea for a plugin!