1
0
mirror of https://github.com/essentials/Essentials.git synced 2025-08-28 08:50:02 +02:00

Adds optional argument to clear inventory and armor with /clear

This commit is contained in:
GunfighterJ
2013-02-15 12:38:41 -06:00
parent 4318f0f71d
commit 49931aaf9e

View File

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