mirror of
https://github.com/essentials/Essentials.git
synced 2025-02-24 08:22:56 +01:00
Adds optional argument to clear inventory and armor with /clear
This commit is contained in:
parent
cfe1244774
commit
0a2582ebdc
@ -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…
x
Reference in New Issue
Block a user