mirror of
https://github.com/EssentialsX/Essentials.git
synced 2025-01-06 16:37:55 +01:00
Merge pull request #333 from GunfighterJ/patch-12
Adds optional argument to clear both inventory and armor with /clear
This commit is contained in:
commit
9186ca2c9a
@ -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(":");
|
||||||
|
Loading…
Reference in New Issue
Block a user