diff --git a/src/main/java/xyz/ineanto/nicko/placeholder/NickoExpansion.java b/src/main/java/xyz/ineanto/nicko/placeholder/NickoExpansion.java index a592b8d..b51455a 100644 --- a/src/main/java/xyz/ineanto/nicko/placeholder/NickoExpansion.java +++ b/src/main/java/xyz/ineanto/nicko/placeholder/NickoExpansion.java @@ -29,7 +29,7 @@ public class NickoExpansion extends PlaceholderExpansion { @Override public @NotNull String getVersion() { - return "1.0.0"; + return "1.0.1"; } @Override @@ -51,15 +51,8 @@ public class NickoExpansion extends PlaceholderExpansion { final Optional optionalProfile = instance.getDataStore().getData(player.getUniqueId()); if (optionalProfile.isPresent()) { final NickoProfile profile = optionalProfile.get(); - if (profile.hasData()) { - if (profile.getName() != null) { - name = profile.getName(); - } - - if (profile.getSkin() != null) { - skin = profile.getSkin(); - } - } + name = profile.getName() == null ? player.getName() : profile.getName(); + skin = profile.getSkin() == null ? player.getName() : profile.getSkin(); locale = profile.getLocale().getName(); randomSkin = profile.isRandomSkin(); }