WETTER
This commit is contained in:
@@ -1995,22 +1995,6 @@ namespace ReallifeGamemode.Server.Commands
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool found = false;
|
|
||||||
foreach (string w in Enum.GetNames(typeof(Weather)))
|
|
||||||
{
|
|
||||||
if (w.ToLower() == weather)
|
|
||||||
{
|
|
||||||
found = true;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!found)
|
|
||||||
{
|
|
||||||
ChatService.ErrorMessage(player, "Dieses Wetter existiert nicht");
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
Weather weatherBefore = NAPI.World.GetWeather();
|
Weather weatherBefore = NAPI.World.GetWeather();
|
||||||
NAPI.World.SetWeather(weather);
|
NAPI.World.SetWeather(weather);
|
||||||
Weather weatherAfter = NAPI.World.GetWeather();
|
Weather weatherAfter = NAPI.World.GetWeather();
|
||||||
|
|||||||
Reference in New Issue
Block a user