Skip to content

API for implementing Lands functionality into your plugin.

Notifications You must be signed in to change notification settings

SkyTecDome1994/LandsAPI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

83 Commits
 
 
 
 
 
 

Repository files navigation

LandsAPI - Integrate Lands into your Plugin

How to include the API with Maven:

<repositories>
	<repository>
		<id>jitpack.io</id>
		<url>https://jitpack.io</url>
	</repository>
</repositories>

<dependencies>
    <dependency>
        <groupId>com.github.Angeschossen</groupId>
        <artifactId>LandsAPI</artifactId>
        <version>4.3.3.0</version>
        <scope>provided</scope>
    </dependency>
</dependencies>

How to include the API with Gradle:

repositories {
	maven { url 'https://jitpack.io' }
}
dependencies {
    compileOnly "com.github.Angeschossen:LandsAPI:4.3.3.0"
}

You can also download the jar file from here: https://github.com/Angeschossen/LandsAPI/releases

Implementing Lands

Examble:


    private final LandsIntegration landsAddon;

    private IntegrationExample(Plugin yourPlugin) {

        /*
        Initialize LandsAddon
        Set isPulic to false, if you want
        to prevent that other developers can
        access your addon.
         */
        landsAddon = new LandsIntegration(yourPlugin, false);
    }

    //Just a test
    private void test(Location location) {
        final LandChunk landChunk = landsAddon.getLandChunk(location);
        //Do some stuff.
    }
}

About

API for implementing Lands functionality into your plugin.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages