From 623c43ebacabc110de10ab046fbaa095137685c3 Mon Sep 17 00:00:00 2001 From: nahkampfaffe Date: Sat, 3 Aug 2019 16:39:11 +0200 Subject: [PATCH] fix fix fix --- ReallifeGamemode.Server/Commands/AdminCommands.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ReallifeGamemode.Server/Commands/AdminCommands.cs b/ReallifeGamemode.Server/Commands/AdminCommands.cs index f31ff72e..e993034c 100644 --- a/ReallifeGamemode.Server/Commands/AdminCommands.cs +++ b/ReallifeGamemode.Server/Commands/AdminCommands.cs @@ -943,6 +943,12 @@ namespace ReallifeGamemode.Server.Commands [Command("adice", "~m~Benutzung: ~s~/adice [Zahl]")] public void CmdUserAdice(Client player, int number) { + if (!player.GetUser()?.IsAdmin(AdminLevel.ADMIN3) ?? true) + { + ChatService.NotAuthorized(player); + return; + } + if (!player.IsLoggedIn()) return; var peopleInRange = NAPI.Player.GetPlayersInRadiusOfPlayer(7, player);