Fixed Some things with inventorysee

This commit is contained in:
Driftay 2019-09-28 03:22:23 -04:00
parent 4ab3f3a465
commit 0b1add2a3e
1 changed files with 2 additions and 2 deletions

View File

@ -38,7 +38,7 @@ public class CmdInventorySee extends FCommand {
Access use = context.fPlayer.getFaction().getAccess(context.fPlayer, PermissableAction.TERRITORY);
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;
}
@ -46,7 +46,7 @@ public class CmdInventorySee extends FCommand {
FPlayer targetInv = context.argAsFPlayer(0);
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;
}