Skip to content

Commit

Permalink
Fix: Compile
Browse files Browse the repository at this point in the history
  • Loading branch information
Skullians committed Dec 28, 2024
1 parent 260582a commit e9d96d2
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down

0 comments on commit e9d96d2

Please sign in to comment.