diff --git a/MMOItems-API/src/main/java/net/Indyuce/mmoitems/api/player/PlayerData.java b/MMOItems-API/src/main/java/net/Indyuce/mmoitems/api/player/PlayerData.java index e6611da3..a510caa5 100644 --- a/MMOItems-API/src/main/java/net/Indyuce/mmoitems/api/player/PlayerData.java +++ b/MMOItems-API/src/main/java/net/Indyuce/mmoitems/api/player/PlayerData.java @@ -366,14 +366,17 @@ public class PlayerData extends SynchronizedDataHolder implements Closeable { return mmoData.getCooldownMap().getInfo(ref).getRemaining() / 1000d; } + @NotNull + public static PlayerData get(@NotNull MMOPlayerData playerData) { + return get(playerData.getPlayer()); + } + @NotNull public static PlayerData get(@NotNull OfflinePlayer player) { return get(player.getUniqueId()); } /** - * See {@link #has(UUID)} - * * @return If player data is loaded for a player */ public static boolean has(Player player) {