more big fixes
This commit is contained in:
parent
469c7ee98a
commit
77675c7ece
3 changed files with 5 additions and 5 deletions
|
@ -211,8 +211,8 @@ public class PlayerInfoTable {
|
||||||
statement.setBytes(1, encodeUUID(uuid));
|
statement.setBytes(1, encodeUUID(uuid));
|
||||||
statement.setInt(2, info.hider_wins + (winners.contains(uuid) && type == WinType.HIDER_WIN ? 1 : 0));
|
statement.setInt(2, info.hider_wins + (winners.contains(uuid) && type == WinType.HIDER_WIN ? 1 : 0));
|
||||||
statement.setInt(3, info.seeker_wins + (winners.contains(uuid) && type == WinType.SEEKER_WIN ? 1 : 0));
|
statement.setInt(3, info.seeker_wins + (winners.contains(uuid) && type == WinType.SEEKER_WIN ? 1 : 0));
|
||||||
statement.setInt(4, info.hider_games + (Board.isHider(uuid) ? 1 : 0));
|
statement.setInt(4, info.hider_games + (Board.isHider(uuid) || (Board.isSeeker(uuid) && !Board.getFirstSeeker().getUniqueId().equals(uuid)) ? 1 : 0));
|
||||||
statement.setInt(5, info.seeker_games + (Board.isSeeker(uuid) ? 1 : 0));
|
statement.setInt(5, info.seeker_games + (Board.getFirstSeeker().getUniqueId().equals(uuid) ? 1 : 0));
|
||||||
statement.setInt(6, info.hider_kills + (Board.isHider(uuid) ? hider_kills.getOrDefault(uuid.toString(), 0) : 0));
|
statement.setInt(6, info.hider_kills + (Board.isHider(uuid) ? hider_kills.getOrDefault(uuid.toString(), 0) : 0));
|
||||||
statement.setInt(7, info.seeker_kills + (Board.isSeeker(uuid) ? seeker_kills.getOrDefault(uuid.toString(), 0) : 0));
|
statement.setInt(7, info.seeker_kills + (Board.isSeeker(uuid) ? seeker_kills.getOrDefault(uuid.toString(), 0) : 0));
|
||||||
statement.setInt(8, info.hider_deaths + (Board.isHider(uuid) ? hider_deaths.getOrDefault(uuid.toString(), 0) : 0));
|
statement.setInt(8, info.hider_deaths + (Board.isHider(uuid) ? hider_deaths.getOrDefault(uuid.toString(), 0) : 0));
|
||||||
|
|
|
@ -228,7 +228,7 @@ public class EventListener implements Listener {
|
||||||
Board.addSeeker(player);
|
Board.addSeeker(player);
|
||||||
}
|
}
|
||||||
// Add leaderboard kills if attacker
|
// Add leaderboard kills if attacker
|
||||||
if(attacker != null && ( Board.isHider(player) || Board.getFirstSeeker().getName().equals(player.getName()) ) )
|
if(attacker != null && ( Board.isHider(attacker) || Board.getFirstSeeker().getName().equals(attacker.getName()) ) )
|
||||||
Board.addKill(attacker.getUniqueId());
|
Board.addKill(attacker.getUniqueId());
|
||||||
Game.resetPlayer(player);
|
Game.resetPlayer(player);
|
||||||
Board.reloadBoardTeams();
|
Board.reloadBoardTeams();
|
||||||
|
|
|
@ -189,8 +189,8 @@ public class Game {
|
||||||
for(Player player2 : Board.getPlayers()){
|
for(Player player2 : Board.getPlayers()){
|
||||||
player.showPlayer(player2);
|
player.showPlayer(player2);
|
||||||
}
|
}
|
||||||
player.setFlying(false);
|
|
||||||
player.setAllowFlight(false);
|
player.setAllowFlight(false);
|
||||||
|
player.setFlying(false);
|
||||||
if(Version.atLeast("1.9")){
|
if(Version.atLeast("1.9")){
|
||||||
for(Player temp : Board.getPlayers()) {
|
for(Player temp : Board.getPlayers()) {
|
||||||
Packet.setGlow(player, temp, false);
|
Packet.setGlow(player, temp, false);
|
||||||
|
@ -314,8 +314,8 @@ public class Game {
|
||||||
}
|
}
|
||||||
Board.createGameBoard(player);
|
Board.createGameBoard(player);
|
||||||
player.teleport(new Location(Bukkit.getWorld(getGameWorld()), spawnPosition.getX(),spawnPosition.getY(),spawnPosition.getZ()));
|
player.teleport(new Location(Bukkit.getWorld(getGameWorld()), spawnPosition.getX(),spawnPosition.getY(),spawnPosition.getZ()));
|
||||||
player.setFlying(true);
|
|
||||||
player.setAllowFlight(true);
|
player.setAllowFlight(true);
|
||||||
|
player.setFlying(true);
|
||||||
player.setFallDistance(0.0F);
|
player.setFallDistance(0.0F);
|
||||||
Titles.sendTitle(player, 10, 70, 20, ChatColor.GRAY + "" + ChatColor.BOLD + "SPECTATING", ChatColor.WHITE + message("SPECTATOR_SUBTITLE").toString());
|
Titles.sendTitle(player, 10, 70, 20, ChatColor.GRAY + "" + ChatColor.BOLD + "SPECTATING", ChatColor.WHITE + message("SPECTATOR_SUBTITLE").toString());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue