From b3f6f90cb173b9eccc3e4030e648515cb14d4f02 Mon Sep 17 00:00:00 2001 From: Lukas Moungos Date: Sun, 1 Dec 2019 00:23:21 +0100 Subject: [PATCH] [+] reloadturf command --- ReallifeGamemode.Server/Commands/AdminCommands.cs | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/ReallifeGamemode.Server/Commands/AdminCommands.cs b/ReallifeGamemode.Server/Commands/AdminCommands.cs index d5d2062c..7d386f0d 100644 --- a/ReallifeGamemode.Server/Commands/AdminCommands.cs +++ b/ReallifeGamemode.Server/Commands/AdminCommands.cs @@ -3019,6 +3019,19 @@ namespace ReallifeGamemode.Server.Commands Gangwar.Gangwar.loadClient(player); } + [Command("reloadturfs", "~m~Benutzung:~s~ /reloadturfs")] + public void CmdAdmReloadTurf(Client player) + { + if (!player.GetUser()?.IsAdmin(AdminLevel.HEADADMIN) ?? true) + { + ChatService.NotAuthorized(player); + return; + } + Gangwar.Gangwar.loadTurfs(); + } + + + #endregion #region ALevel1338