summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGunfighterJ <joseph.jenniges@gmail.com>2013-02-15 12:38:41 -0600
committerGunfighterJ <joseph.jenniges@gmail.com>2013-02-15 12:38:41 -0600
commit0a2582ebdc49d39e5711b78d09b535419bc355c4 (patch)
tree05731c6fb3989cbb0d61762913d92f55fea1683f
parentcfe1244774004ed8ca6ef33bdaae32c8cea234d8 (diff)
downloadEssentials-0a2582ebdc49d39e5711b78d09b535419bc355c4.tar
Essentials-0a2582ebdc49d39e5711b78d09b535419bc355c4.tar.gz
Essentials-0a2582ebdc49d39e5711b78d09b535419bc355c4.tar.lz
Essentials-0a2582ebdc49d39e5711b78d09b535419bc355c4.tar.xz
Essentials-0a2582ebdc49d39e5711b78d09b535419bc355c4.zip
Adds optional argument to clear inventory and armor with /clear
-rw-r--r--Essentials/src/com/earth2me/essentials/commands/Commandclearinventory.java5
1 files changed, 5 insertions, 0 deletions
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(":");