Area areas[] = Server.getAllAreas();

A new update is now available, introducing a lot of new content!
Latest hotfix: 0.7.5.2 (2024-09-10)
  • is the Server.getAllAreas() not working? i beleive my code is correct but keep getting a null for start position.


    Java
    public void showareas(Player player){
    Area areas[] = Server.getAllAreas();
    for (Area area : areas) {
    Area newa = new Area(area.getStartPosition(),area.getEndPosition());
    Area3D toshow = new Area3D(newa);
    player.addGameObject(toshow);
    }
    }

Participate now!

Don’t have an account yet? Create a new account now and be part of our community!