1.5.0 Release Candidate 4
This commit is contained in:
parent
6b4bef24c0
commit
2169712940
3 changed files with 6 additions and 6 deletions
|
@ -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 {
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -40,9 +40,9 @@ public class PAPIExpansion extends PlaceholderExpansion {
|
|||
String[] args = params.split("_");
|
||||
if (args.length < 1) return null;
|
||||
if (args[0].equals("stats") && (args.length == 2 || args.length == 3)) {
|
||||
PlayerInfo info = null;
|
||||
PlayerInfo info;
|
||||
if(args.length == 2) {
|
||||
database.getGameData().getInfo(player.getUniqueId());
|
||||
info = database.getGameData().getInfo(player.getUniqueId());
|
||||
} else {
|
||||
UUID uuid;
|
||||
try { uuid = Main.getInstance().getDatabase().getNameData().getUUID(args[2]); } catch (Exception e) { return placeholderError; }
|
||||
|
@ -64,9 +64,9 @@ public class PAPIExpansion extends PlaceholderExpansion {
|
|||
}
|
||||
} else if (args[0].equals("rank-place") && (args.length == 2 || args.length == 3)) {
|
||||
if (getRanking(args[1]) == null) { return placeholderError; }
|
||||
PlayerInfo info = null;
|
||||
PlayerInfo info;
|
||||
if(args.length == 2){
|
||||
database.getGameData().getInfo(player.getUniqueId());
|
||||
info = database.getGameData().getInfo(player.getUniqueId());
|
||||
} else {
|
||||
UUID uuid;
|
||||
try { uuid = Main.getInstance().getDatabase().getNameData().getUUID(args[2]); } catch (Exception e) { return placeholderError; }
|
||||
|
|
Loading…
Reference in a new issue