From e6d177c09aeb410f019be8592398a71deec3eb64 Mon Sep 17 00:00:00 2001 From: Trent Hensler Date: Tue, 8 Mar 2016 15:38:50 -0800 Subject: [PATCH] Revert "Don't require extra argument to see armor with invsee. Resolves #472." Handling this with armor and without NMS isn't clean. Advise using OpenInv if players want extended capability. This reverts commit 6eb63fd3fd0a9f01b45d7c8794ac4254285c8828. --- .../src/com/earth2me/essentials/commands/Commandinvsee.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Essentials/src/com/earth2me/essentials/commands/Commandinvsee.java b/Essentials/src/com/earth2me/essentials/commands/Commandinvsee.java index 56e54f7e2..c04e87857 100644 --- a/Essentials/src/com/earth2me/essentials/commands/Commandinvsee.java +++ b/Essentials/src/com/earth2me/essentials/commands/Commandinvsee.java @@ -20,7 +20,7 @@ public class Commandinvsee extends EssentialsCommand { final User invUser = getPlayer(server, user, args, 0); Inventory inv; - if (user.isAuthorized("essentials.invsee.equip")) { + if (args.length > 1 && user.isAuthorized("essentials.invsee.equip")) { inv = server.createInventory(invUser.getBase(), 9, "Equipped"); inv.setContents(invUser.getBase().getInventory().getArmorContents()); } else {