From e1e3caaf6b226d7ef2af5b411451ab0a64f00aea Mon Sep 17 00:00:00 2001 From: hydrant Date: Sun, 14 Oct 2018 23:04:08 +0200 Subject: [PATCH] Added Clothes and Player Props --- Server/Commands/Admin.cs | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) 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) {