I appreciate it, Paperwork.
Edit: Okay, after I added that in under line 71, the mod is broken and I cannot get it to work. Here's the code from the console.
Loading Add-On: Server_Hunger (CRC:1298818730)
Add-Ons/Server_Hunger/server.cs Line: 72 - Syntax error.
>>> Some error context, with ## on sides of error halt:
^ else if(%player.Hunger >= ($Pref::Server::MaxHunger * 0.95) && %player.Hunger < $Pref::Server::MaxHunger)
^ {
^^ %player.addHealth(-0.3);
^ }
^ else if(%player.Hunger >= $Pref::Server::MaxHunger)
^ {
^^ %player.kill();
^ }
% ##p##layer.StatusEffectLoop = % player.schedule($Pref::Server::HungerLoopTime * 1000, StatusEffects);
}
}
function Player::HudDisplay(%player)
{
if(%player.getClassName() $= "Player")
{
^cancel(%player.HudDisplayLoop);
^if(isObject(%player))
^{
>>> Error report complete.
ADD-ON "Server_Hunger" CONTAINS SYNTAX ERRORS