Setup
Javadoc
API Usage Explained
LandsIntegration api = LandsIntegration.of(plugin);LandWorld world = api.getWorld(world); if (world != null) { // Lands is enabled in this world if (world.hasFlag(api.getLandPlayer(player), location, material, Flags.BLOCK_BREAK, false)) { // the player is allowed to break blocks with the given material at the given location } else { // the player isn't allowed to break this block in wilderness or a claimed land at this position } }LandWorld world = api.getWorld(world); if (world != null) { // Lands is enabled in this world if (world.hasNaturalFlag(location, Flags.MONSTER_SPAWN)) { // monsters are allowed to spawn at this location } else { // they aren't allowed to spawn at this location } }RoleFlag flag = RoleFlag.of(api, FlagTarget.PLAYER, RoleFlagCategory.ACTION, "flag_name");flag.setDisplayName("Name") .setIcon(itemstack) .setDescription(description);
Last updated