From 3e65964749658ae706915f190dc5a7ae94572c45 Mon Sep 17 00:00:00 2001 From: hydrant Date: Fri, 2 Apr 2021 21:56:32 +0200 Subject: [PATCH] WETTER --- .../Commands/AdminCommands.cs | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/ReallifeGamemode.Server/Commands/AdminCommands.cs b/ReallifeGamemode.Server/Commands/AdminCommands.cs index 4f47f2b1..71fbd171 100644 --- a/ReallifeGamemode.Server/Commands/AdminCommands.cs +++ b/ReallifeGamemode.Server/Commands/AdminCommands.cs @@ -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();