diff --git a/Server/Commands/Admin.cs b/Server/Commands/Admin.cs index afe578e6..de21c9de 100644 --- a/Server/Commands/Admin.cs +++ b/Server/Commands/Admin.cs @@ -24,6 +24,30 @@ 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) + { + if (!player.GetUser()?.IsAdmin(AdminLevel.SUPPORTER) ?? true) + { + ChatService.NotAuthorized(player); + return; + } + + player.SetClothes(slot, component, 0); + } + + [Command("props", "~m~Benutzung: ~s~/props [Slot] [Component ID]")] + public void CmdAdminProps(Client player, int slot, int component) + { + if (!player.GetUser()?.IsAdmin(AdminLevel.SUPPORTER) ?? true) + { + ChatService.NotAuthorized(player); + return; + } + + player.SetAccessories(slot, component, 0); + } + [Command("o", "~m~Benutzung: ~s~/o [Nachricht]", GreedyArg = true)] public void CmdAdminO(Client player, string message) {