From e9d96d200ebc439e6ca204c49ff779ecddfd2411 Mon Sep 17 00:00:00 2001 From: Skullian <133133667+Skullians@users.noreply.github.com> Date: Sat, 28 Dec 2024 14:37:02 +0000 Subject: [PATCH] Fix: Compile --- .../skullian/skyfactions/paper/hooks/PlaceholderAPIHook.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/paper/src/main/java/net/skullian/skyfactions/paper/hooks/PlaceholderAPIHook.java b/paper/src/main/java/net/skullian/skyfactions/paper/hooks/PlaceholderAPIHook.java index bf52c450..527f70c1 100644 --- a/paper/src/main/java/net/skullian/skyfactions/paper/hooks/PlaceholderAPIHook.java +++ b/paper/src/main/java/net/skullian/skyfactions/paper/hooks/PlaceholderAPIHook.java @@ -47,13 +47,13 @@ public String onRequest(OfflinePlayer player, @NotNull String params) { String locale = SkyApi.getInstance().getPlayerAPI().getLocale(player.getUniqueId()); if (params.equalsIgnoreCase("player_runes")) { if (player == null) return "-1"; - if (user.runes.isPresent()) return String.valueOf(user.runes.get()); + if (user.runes.isPresent()) return String.valueOf(user.runes.getAsInt()); else user.getRunes(); return "-1"; } else if (params.equalsIgnoreCase("player_gems")) { if (player == null) return "-1"; - if (user.gems.isPresent()) return String.valueOf(user.gems.get()); + if (user.gems.isPresent()) return String.valueOf(user.gems.getAsInt()); else user.getGems(); return "-1";