WETTER
This commit is contained in:
@@ -1995,22 +1995,6 @@ namespace ReallifeGamemode.Server.Commands
|
||||
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();
|
||||
NAPI.World.SetWeather(weather);
|
||||
Weather weatherAfter = NAPI.World.GetWeather();
|
||||
|
||||
Reference in New Issue
Block a user