From f1e4e49779addfd957183441478403195db971d7 Mon Sep 17 00:00:00 2001 From: GunfighterJ Date: Fri, 15 Feb 2013 12:38:41 -0600 Subject: Adds optional argument to clear inventory and armor with /clear --- .../src/com/earth2me/essentials/commands/Commandclearinventory.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Essentials/src/com/earth2me/essentials/commands/Commandclearinventory.java b/Essentials/src/com/earth2me/essentials/commands/Commandclearinventory.java index 070e74c44..5f521fa25 100644 --- a/Essentials/src/com/earth2me/essentials/commands/Commandclearinventory.java +++ b/Essentials/src/com/earth2me/essentials/commands/Commandclearinventory.java @@ -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(":"); -- cgit v1.2.3