mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-02-11 20:00:46 +00:00
Adds optional argument to clear inventory and armor with /clear
This commit is contained in:
parent
5840c02efc
commit
f1e4e49779
1 changed files with 5 additions and 0 deletions
|
@ -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(":");
|
||||
|
|
Loading…
Reference in a new issue