From 6bd3d4a3d0b892ab20c0faf21a2e241679cb39b7 Mon Sep 17 00:00:00 2001 From: Siga Date: Sat, 28 Mar 2020 20:07:13 +0100 Subject: [PATCH] try fix --- ReallifeGamemode.Server/Commands/AdminCommands.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ReallifeGamemode.Server/Commands/AdminCommands.cs b/ReallifeGamemode.Server/Commands/AdminCommands.cs index c107b264..ecb04ae2 100644 --- a/ReallifeGamemode.Server/Commands/AdminCommands.cs +++ b/ReallifeGamemode.Server/Commands/AdminCommands.cs @@ -987,7 +987,7 @@ namespace ReallifeGamemode.Server.Commands } [Command("clothes", "~m~Benutzung: ~s~/clothes [Spieler] [Component ID] [Drawable] (Textur)")] - public void CmdAdminClothes(Player player, string? name = null, int? component = null, int? drawable = null, int texture = 0) + public void CmdAdminClothes(Player player, string name, int? component = null, int? drawable = null, int texture = 0) { if (!player.GetUser()?.IsAdmin(AdminLevel.ADMIN2) ?? true) { @@ -995,7 +995,7 @@ namespace ReallifeGamemode.Server.Commands return; } - if (name == null || component == null || drawable == null) + if (name is null || component == null || drawable == null) { player.SendChatMessage("~m~Benutzung: ~s~/clothes [Spieler] [Component ID] [Drawable] (Textur)"); return;