diff --git a/Essentials/src/main/java/com/earth2me/essentials/EssentialsPlayerListener.java b/Essentials/src/main/java/com/earth2me/essentials/EssentialsPlayerListener.java index edef41692..6b0746590 100644 --- a/Essentials/src/main/java/com/earth2me/essentials/EssentialsPlayerListener.java +++ b/Essentials/src/main/java/com/earth2me/essentials/EssentialsPlayerListener.java @@ -346,7 +346,7 @@ public class EssentialsPlayerListener implements Listener { .replace("{UPTIME}", DateUtil.formatDateDiff(ManagementFactory.getRuntimeMXBean().getStartTime())) .replace("{PREFIX}", FormatUtil.replaceFormat(ess.getPermissionsHandler().getPrefix(player))) .replace("{SUFFIX}", FormatUtil.replaceFormat(ess.getPermissionsHandler().getSuffix(player))) - .replace("{OLDUSERNAME}", lastAccountName); + .replace("{OLDUSERNAME}", lastAccountName == null ? "" : lastAccountName); if (!msg.isEmpty()) { ess.getServer().broadcastMessage(msg); }