Merge pull request #333 from GunfighterJ/patch-12

Adds optional argument to clear both inventory and armor with /clear
This commit is contained in:
KHobbits 2013-02-16 08:40:44 -08:00
commit 9186ca2c9a

View File

@ -126,6 +126,11 @@ public class Commandclearinventory extends EssentialsCommand
{
player.getInventory().clear();
}
else if (arg.equalsIgnoreCase("**"))
{
player.getInventory().clear();
player.getInventory().setArmorContents(null);
}
else
{
final String[] split = arg.split(":");