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 6eb63fd3fd.
This commit is contained in:
Trent Hensler 2016-03-08 15:38:50 -08:00
parent 65f2051e87
commit e6d177c09a

View File

@ -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 {