diff --git a/Essentials/src/com/earth2me/essentials/commands/Commandseen.java b/Essentials/src/com/earth2me/essentials/commands/Commandseen.java index 82f9dd194..30a46a6c8 100644 --- a/Essentials/src/com/earth2me/essentials/commands/Commandseen.java +++ b/Essentials/src/com/earth2me/essentials/commands/Commandseen.java @@ -39,7 +39,15 @@ public class Commandseen extends EssentialsCommand { if (args.length < 1) { throw new NotEnoughArgumentsException(); } - User player = ess.getOfflineUser(args[0]); + User player; + // Check by uuid, if it fails check by name. + try { + UUID uuid = UUID.fromString(args[0]); + player = ess.getUser(uuid); + }catch (IllegalArgumentException ignored) { // Thrown if invalid UUID from string, check by name. + player = ess.getOfflineUser(args[0]); + } + if (player == null) { if (ipLookup && FormatUtil.validIP(args[0])) { seenIP(server, sender, args[0]);