From 88055f8ab4715ea7e36f1c059eb0eff1f694c1e0 Mon Sep 17 00:00:00 2001 From: Lennart Kampshoff Date: Mon, 15 Oct 2018 00:04:09 +0200 Subject: [PATCH] Added optional texture parameter to /clothes and /props --- Server/Commands/Admin.cs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Server/Commands/Admin.cs b/Server/Commands/Admin.cs index 7af044f8..3d0049fa 100644 --- a/Server/Commands/Admin.cs +++ b/Server/Commands/Admin.cs @@ -24,8 +24,8 @@ namespace reallife_gamemode.Server.Commands { public class Admin : Script { - [Command("clothes", "~m~Benutzung: ~s~/clothes [Slot] [Component ID]")] - public void CmdAdminClothes(Client player, int slot, int component) + [Command("clothes", "~m~Benutzung: ~s~/clothes [Slot] [Component ID] (Textur)")] + public void CmdAdminClothes(Client player, int slot, int component, int texture = 0) { if (!player.GetUser()?.IsAdmin(AdminLevel.SUPPORTER) ?? true) { @@ -33,11 +33,11 @@ namespace reallife_gamemode.Server.Commands return; } - player.SetClothes(slot, component, 0); + player.SetClothes(slot, component, texture); } - [Command("props", "~m~Benutzung: ~s~/props [Slot] [Component ID]")] - public void CmdAdminProps(Client player, int slot, int component) + [Command("props", "~m~Benutzung: ~s~/props [Slot] [Component ID] (Textur)")] + public void CmdAdminProps(Client player, int slot, int component, int texture = 0) { if (!player.GetUser()?.IsAdmin(AdminLevel.SUPPORTER) ?? true) { @@ -45,7 +45,7 @@ namespace reallife_gamemode.Server.Commands return; } - player.SetAccessories(slot, component, 0); + player.SetAccessories(slot, component, texture); } [Command("o", "~m~Benutzung: ~s~/o [Nachricht]", GreedyArg = true)]