mirror of
https://github.com/EssentialsX/Essentials.git
synced 2025-01-21 15:41:43 +01:00
Adds optional argument to clear inventory and armor with /clear
This commit is contained in:
parent
5840c02efc
commit
f1e4e49779
@ -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