Fix ClimbEvent
This commit is contained in:
parent
113426e0c0
commit
91201cae96
1 changed files with 3 additions and 1 deletions
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue