Added optional texture parameter to /clothes and /props
This commit is contained in:
@@ -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)]
|
||||
|
||||
Reference in New Issue
Block a user