mirror of
https://github.com/EssentialsX/Essentials.git
synced 2025-02-03 22:11:42 +01:00
Don't require extra argument to see armor with invsee. Resolves #472.
Before, you had to do to see armor. Now it just adds it if you have the permission.
This commit is contained in:
parent
03c59a9f17
commit
6eb63fd3fd
@ -20,7 +20,7 @@ public class Commandinvsee extends EssentialsCommand {
|
||||
final User invUser = getPlayer(server, user, args, 0);
|
||||
Inventory inv;
|
||||
|
||||
if (args.length > 1 && user.isAuthorized("essentials.invsee.equip")) {
|
||||
if (user.isAuthorized("essentials.invsee.equip")) {
|
||||
inv = server.createInventory(invUser.getBase(), 9, "Equipped");
|
||||
inv.setContents(invUser.getBase().getInventory().getArmorContents());
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user