Merge remote-tracking branch 'tylermurphy534/1.5.0' into 1.5.0

This commit is contained in:
bobby29831 2022-05-24 14:03:02 -05:00
commit e39749be11
3 changed files with 4 additions and 4 deletions

View file

@ -239,7 +239,6 @@ public class Board {
board.updateTeams();
}
int timeLeft = Main.getInstance().getGame().getTimeLeft();
Status status = Main.getInstance().getGame().getStatus();
@ -279,7 +278,7 @@ public class Board {
board.setLine(String.valueOf(i), line.replace("{TAUNT}", TAUNT_ACTIVE));
}
} else if (line.contains("{GLOW}")) {
if (!glowEnabled) return;
if (!glowEnabled) continue;
if (glow == null || status == Status.STARTING || !glow.isRunning()) {
board.setLine(String.valueOf(i), line.replace("{GLOW}", GLOW_INACTIVE));
} else {

View file

@ -70,6 +70,7 @@ public class PlayerLoader {
}
public static void resetPlayer(Player player, Board board){
if(board.isSeeker(player)) return;
loadPlayer(player);
if (board.isSeeker(player)) {
if (pvpEnabled)

View file

@ -47,11 +47,11 @@ public class PAPIExpansion extends PlaceholderExpansion {
if (info.isPresent()) {
switch (args[0]) {
case "stats":
return getValue(info.get(), args[1]);
case "rank-place":
return getValue(info.get(), args[1]);
if (getRanking(args[1]) == null) return placeholderError;
if (getValue(info.get(), args[1]).equals("0")) return "-";
Integer count = database.getGameData().getRanking(getRanking(args[1]), player.getUniqueId());
if (getValue(info.get(), args[1]).equals("0")) return "-";
if (count == null) return placeholderNoData;
return count.toString();
}