Fix ClimbEvent

This commit is contained in:
Mathieu Strypsteen 2024-09-21 17:17:35 +02:00
parent 113426e0c0
commit 91201cae96

View file

@ -27,8 +27,10 @@ public class ClimbEvent extends Event {
@Override @Override
public void start() { public void start() {
if (MC13DTL.board.getPlayers(team).size() == 0) {
return;
}
Player player = MC13DTL.board.getPlayers(team).getFirst(); Player player = MC13DTL.board.getPlayers(team).getFirst();
player.getLocation().x(); player.getLocation().x();
Location location = new Location(Bukkit.getWorld("world"), player.getX(), -50, player.getZ()); Location location = new Location(Bukkit.getWorld("world"), player.getX(), -50, player.getZ());
location.getBlock().setType(Material.AIR); location.getBlock().setType(Material.AIR);