This commit is contained in:
hydrant
2021-04-02 21:56:32 +02:00
parent 7687d3bc58
commit 3e65964749

View File

@@ -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();