diff --git a/src/main/java/com/gmail/nossr50/commands/player/InspectCommand.java b/src/main/java/com/gmail/nossr50/commands/player/InspectCommand.java index 5779147ea..c23bd6ef1 100644 --- a/src/main/java/com/gmail/nossr50/commands/player/InspectCommand.java +++ b/src/main/java/com/gmail/nossr50/commands/player/InspectCommand.java @@ -74,7 +74,7 @@ public class InspectCommand implements TabExecutor { if (!isVanished && CommandUtils.tooFar(sender, target, Permissions.inspectFar(sender))) { return true; } - + if (mcMMO.p.getGeneralConfig().getScoreboardsEnabled() && sender instanceof Player && mcMMO.p.getGeneralConfig().getInspectUseBoard()) { @@ -85,11 +85,19 @@ public class InspectCommand implements TabExecutor { } } - sender.sendMessage(LocaleLoader.getString("Inspect.Stats", target.getName())); + if (isVanished) { + sender.sendMessage(LocaleLoader.getString("Inspect.OfflineStats", playerName)); + } else { + sender.sendMessage(LocaleLoader.getString("Inspect.Stats", target.getName())); + } + CommandUtils.printGatheringSkills(target, sender); CommandUtils.printCombatSkills(target, sender); CommandUtils.printMiscSkills(target, sender); - sender.sendMessage(LocaleLoader.getString("Commands.PowerLevel", mcMMOPlayer.getPowerLevel())); + + if (!isVanished) { + sender.sendMessage(LocaleLoader.getString("Commands.PowerLevel", mcMMOPlayer.getPowerLevel())); + } } return true;