Fixed Some things with inventorysee

This commit is contained in:
Driftay 2019-09-28 03:22:23 -04:00
parent 4ab3f3a465
commit 0b1add2a3e

View File

@ -38,7 +38,7 @@ public class CmdInventorySee extends FCommand {
Access use = context.fPlayer.getFaction().getAccess(context.fPlayer, PermissableAction.TERRITORY); Access use = context.fPlayer.getFaction().getAccess(context.fPlayer, PermissableAction.TERRITORY);
if (use == Access.DENY || (use == Access.UNDEFINED && !context.assertMinRole(Role.MODERATOR))) { if (use == Access.DENY || (use == Access.UNDEFINED && !context.assertMinRole(Role.MODERATOR))) {
context.msg(TL.GENERIC_NOPERMISSION, "territory"); context.msg(TL.GENERIC_NOPERMISSION, "see other faction members inventories");
return; return;
} }
@ -46,7 +46,7 @@ public class CmdInventorySee extends FCommand {
FPlayer targetInv = context.argAsFPlayer(0); FPlayer targetInv = context.argAsFPlayer(0);
if (targetInv == null || !fplayers.contains(targetInv.getPlayer())) { if (targetInv == null || !fplayers.contains(targetInv.getPlayer())) {
context.msg(TL.PLAYER_NOT_FOUND, Objects.requireNonNull(targetInv).toString()); context.msg(TL.PLAYER_NOT_FOUND, Objects.requireNonNull(targetInv.getName()));
return; return;
} }