Area areas[] = Server.getAllAreas();

A new update is now available, introducing fishing, climbing gear, clothes and more!
Latest hotfix: 0.8.5.1 (2025-04-29)
  • 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!