How can i get player's island level from Level addon API?
This has not been documented yet, but you can try to do the following :
UUID uuid = null; // Replace null with the UUID of the player you want to get the island level.
World world = null; // Replace null with the world of the gamemode you want to get the island level from. I did not work on this part of the API, so I don't know how that #get would work.
long level;
BentoBox.getInstance().getAddonsManager().getAddonByName("Level").ifPresent(addon -> {
Level levelAddon = (Level) addon;
level = levelAddon.getIslandLevel(world, UUID);
}
Thanks solved the issue.
Most helpful comment
This has not been documented yet, but you can try to do the following :