diff options
author | GunfighterJ <joseph.jenniges@gmail.com> | 2013-02-15 12:38:41 -0600 |
---|---|---|
committer | GunfighterJ <joseph.jenniges@gmail.com> | 2013-02-15 12:38:41 -0600 |
commit | f1e4e49779addfd957183441478403195db971d7 (patch) | |
tree | 042956f885e90c77d18d7c2da52bdfaf45ba3850 | |
parent | 5840c02efce3d937cfaaf8dbb7dfdb1fa5f85e28 (diff) | |
download | Essentials-f1e4e49779addfd957183441478403195db971d7.tar Essentials-f1e4e49779addfd957183441478403195db971d7.tar.gz Essentials-f1e4e49779addfd957183441478403195db971d7.tar.lz Essentials-f1e4e49779addfd957183441478403195db971d7.tar.xz Essentials-f1e4e49779addfd957183441478403195db971d7.zip |
Adds optional argument to clear inventory and armor with /clear
-rw-r--r-- | Essentials/src/com/earth2me/essentials/commands/Commandclearinventory.java | 5 |
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(":"); |