This command clear your inventory.
Add this code in AdminCommands.cs
Code:
class ClearInventory : ICommand
{
public string Command { get { return "ci"; } } // Clear Inventory
public int RequiredRank { get { return 0; } } //Choose a rank for the command, here all people can use /ci
public int RequiredDonation { get { return 0; } } //Delete this line if you don't have a donator system
public void Execute(Player player, string[] args)
{
string name = string.Join(" ", args.ToArray()).Trim();
name = name.ToLower();
try
{
player.Inventory[0] = null;
player.Inventory[1] = null;
player.Inventory[2] = null;
player.Inventory[3] = null;
player.Inventory[4] = null;
player.Inventory[5] = null;
player.Inventory[6] = null; ;
player.Inventory[7] = null;
player.Inventory[8] = null;
player.Inventory[9] = null;
player.Inventory[10] = null;
player.Inventory[11] = null;
player.UpdateCount++;
return;
}
catch
{
player.SendInfo("Error !");
}
}
}
Credits : @Drowlys for all the work !