diff --git a/src/org/black_ixx/playerpoints/PlayerPoints.java b/src/org/black_ixx/playerpoints/PlayerPoints.java index 57a9566..4fcd25b 100644 --- a/src/org/black_ixx/playerpoints/PlayerPoints.java +++ b/src/org/black_ixx/playerpoints/PlayerPoints.java @@ -221,9 +221,12 @@ public UUID translateNameToUUID(String name) { // Attempt local lookup for(OfflinePlayer p : Bukkit.getServer().getOfflinePlayers()) { - if(p != null && p.getName().toLowerCase().equals(name.toLowerCase())) { - id = p.getUniqueId(); - break; + if(p != null) { + String offlineName = p.getName(); + if(offlineName != null && offlineName.toLowerCase().equals(name.toLowerCase())) { + id = p.getUniqueId(); + break; + } } }