NameRetriever is an extension to the /realname command from Essentials. It works on both offline and online players and has an additional command, /realnick, to get the nickname of a player based on their Minecraft name. As an added bonus, it applies the realname command to the first parameter of any command listed in the config