This commit is contained in:
Siga
2020-03-28 20:07:13 +01:00
parent 79e1d708f7
commit 6bd3d4a3d0

View File

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