e
This commit is contained in:
@ -313,16 +313,4 @@ public class Game {
|
||||
this.addEntityToRemove(teamAUpgradesVillager);
|
||||
this.addEntityToRemove(teamBUpgradesVillager);
|
||||
}
|
||||
|
||||
public boolean checkTrapStatus(Player player) {
|
||||
PlayerData playerData = this.plugin.getPlayerDataManager().getPlayerData(player.getUniqueId());
|
||||
|
||||
GameTeam gameTeam = this.getTeams().get(playerData.getTeamId());
|
||||
|
||||
if (player.getLocation().distance((gameTeam.getId() == 0 ? this.copiedArena.getA().toBukkitLocation() : this.copiedArena.getB().toBukkitLocation())) < 15) {
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user