From 1d85e995344e25516e1fbe2e42f0db4a8c80d64d Mon Sep 17 00:00:00 2001 From: Tyler Murphy Date: Mon, 9 May 2022 22:21:53 -0400 Subject: [PATCH] update placeholders --- .../java/net/tylermurphy/hideAndSeek/util/PAPIExpansion.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/net/tylermurphy/hideAndSeek/util/PAPIExpansion.java b/src/main/java/net/tylermurphy/hideAndSeek/util/PAPIExpansion.java index 90f6432..311fcee 100644 --- a/src/main/java/net/tylermurphy/hideAndSeek/util/PAPIExpansion.java +++ b/src/main/java/net/tylermurphy/hideAndSeek/util/PAPIExpansion.java @@ -45,14 +45,14 @@ public class PAPIExpansion extends PlaceholderExpansion { try { uuid = UUIDFetcher.getUUID(args[2]); } catch (Exception e) { return placeholderError; } PlayerInfo info = Database.playerInfo.getInfo(uuid); return getValue(info, args[1]); - } else if(args[0].equals("rank") && args.length == 3){ + } else if((args[0].equals("rank-score") || args[0].equals("rank-name") ) && args.length == 3){ int place; try { place = Integer.parseInt(args[2]); } catch (NumberFormatException e) { return placeholderError; } if(place < 1) { return placeholderError; } if(getRanking(args[1]) == null) { return placeholderError; } PlayerInfo info = Database.playerInfo.getInfoRanking(getRanking(args[1]), place); if(info == null) return placeholderNoData; - if(args[0].equals("rankStat")){ + if(args[0].equals("rank-score")){ return getValue(info, args[1]); } else { return UUIDFetcher.getPlayer(info.uuid).getName();