From 18aef9d526a3d0685dcd7eb850e1f3959f75981d Mon Sep 17 00:00:00 2001 From: bm01 Date: Fri, 6 Jul 2012 07:13:52 +0200 Subject: [PATCH] Typo --- .../com/gmail/nossr50/commands/general/InspectCommand.java | 4 ++-- .../com/gmail/nossr50/commands/general/MmoeditCommand.java | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/gmail/nossr50/commands/general/InspectCommand.java b/src/main/java/com/gmail/nossr50/commands/general/InspectCommand.java index 37486c04d..b4f5f43b2 100644 --- a/src/main/java/com/gmail/nossr50/commands/general/InspectCommand.java +++ b/src/main/java/com/gmail/nossr50/commands/general/InspectCommand.java @@ -59,9 +59,9 @@ public class InspectCommand implements CommandExecutor { return true; } - //Temporary profile, it would be better to be able to create if with an OfflinePlayer instead - + //Temporary profile, it would be better to be able to create it with an OfflinePlayer instead profile = new PlayerProfile(null, target.getName(), false); + if (!profile.isLoaded()) { sender.sendMessage(LocaleLoader.getString("Commands.DoesNotExist")); return true; diff --git a/src/main/java/com/gmail/nossr50/commands/general/MmoeditCommand.java b/src/main/java/com/gmail/nossr50/commands/general/MmoeditCommand.java index 7d5d7e654..267fa3982 100644 --- a/src/main/java/com/gmail/nossr50/commands/general/MmoeditCommand.java +++ b/src/main/java/com/gmail/nossr50/commands/general/MmoeditCommand.java @@ -94,7 +94,7 @@ public class MmoeditCommand implements CommandExecutor { } } else { - //Temporary profile, it would be better to be able to create if with an OfflinePlayer instead + //Temporary profile, it would be better to be able to create it with an OfflinePlayer instead playerProfile = new PlayerProfile(null, args[0], false); if (!playerProfile.isLoaded()) {