fix clothes/props command help

This commit is contained in:
hydrant
2019-06-22 00:02:28 +02:00
parent 582586ac7f
commit bc41faceb3

View File

@@ -834,7 +834,7 @@ namespace ReallifeGamemode.Server.Commands
ChatService.SendMessage(player, "~b~Du hast die HP von " + target.Name + " auf " + hp + " gesetzt.");
}
[Command("clothes", "~m~Benutzung: ~s~/clothes [Spieler] [Slot] [Component ID] (Textur)")]
[Command("clothes", "~m~Benutzung: ~s~/clothes [Spieler] [Component ID] [Drawable] (Textur)")]
public void CmdAdminClothes(Client player, string name, int slot, int component, int texture = 0)
{
if (!player.GetUser()?.IsAdmin(AdminLevel.ADMIN2) ?? true)
@@ -853,7 +853,7 @@ namespace ReallifeGamemode.Server.Commands
target.SetClothes(slot, component, texture);
}
[Command("props", "~m~Benutzung: ~s~/props [Spieler] [Slot] [Component ID] (Textur)")]
[Command("props", "~m~Benutzung: ~s~/props [Spieler] [Component ID] [Drawable] (Textur)")]
public void CmdAdminProps(Client player, string name, int slot, int component, int texture = 0)
{
if (!player.GetUser()?.IsAdmin(AdminLevel.ADMIN2) ?? true)
@@ -869,6 +869,11 @@ namespace ReallifeGamemode.Server.Commands
return;
}
if(component == -1)
{
target.ClearAccessory(slot);
return;
}
target.SetAccessories(slot, component, texture);
}