20 API Documentation
NotMyFault edited this page 2021-04-28 19:57:41 +02:00

JavaDoc

JavaDocs are available via: https://plotsquared.com/docs/

Gradle - PlotSquared Core

If you need to access the Bukkit module of PlotSquared, copy the example below.

repositories {
    maven { url = uri("https://maven.enginehub.org/repo/") } // WorldEdit
    maven { url = uri("https://mvn.intellectualsites.com/content/groups/public/") } // PlotSquared
}

dependencies {
    compileOnlyApi("com.plotsquared:PlotSquared-Core:5.13.11") // PlotSquared Core API
}

Gradle - PlotSquared Core and Bukkit

repositories {
    maven { url = uri("https://maven.enginehub.org/repo/") } // WorldEdit
    maven { url = uri("https://mvn.intellectualsites.com/content/groups/public/") } // PlotSquared
}

dependencies {
    compileOnlyApi("com.plotsquared:PlotSquared-Core:5.13.11") // PlotSquared Core API
    compileOnlyApi("com.plotsquared:PlotSquared-Bukkit:5.13.11") { isTransitive = false } // PlotSquared Bukkit API
}

You can compile PlotSquared with Gradle, which is included with this repository:
$ gradlew build

Maven - PlotSquared Core

If you need to access the Bukkit module of PlotSquared, copy the example below.

<!-- WorldEdit -->
<repository>
    <id>enginehub</id>
    <url>https://maven.enginehub.org/repo/</url>
</repository>
<!-- PlotSquared -->
<repository>
    <id>IntellectualSites</id>
    <url>https://mvn.intellectualsites.com/content/groups/public/</url>
</repository>

<!-- PlotSquared Core API -->
<dependency>
    <groupId>com.plotsquared</groupId>
    <artifactId>PlotSquared-Core</artifactId>
    <version>5.13.11</version>
</dependency>

Maven - PlotSquared Core and Bukkit

<!-- WorldEdit -->
<repository>
    <id>enginehub</id>
    <url>https://maven.enginehub.org/repo/</url>
</repository>
<!-- PlotSquared -->
<repository>
    <id>IntellectualSites</id>
    <url>https://mvn.intellectualsites.com/content/groups/public/</url>
</repository>

<!-- PlotSquared Core API -->
<dependency>
    <groupId>com.plotsquared</groupId>
    <artifactId>PlotSquared-Core</artifactId>
    <version>5.13.11</version>
</dependency>

<!-- PlotSquared Bukkit API -->
<dependency>
    <groupId>com.plotsquared</groupId>
    <artifactId>PlotSquared-Bukkit</artifactId>
    <version>5.13.11</version>
    <exclusions>
        <exclusion>
            <artifactId>PlotSquared-Core</artifactId>
            <groupId>*</groupId>
        </exclusion>
    </exclusions>
</dependency>

Useful classes for PlotSquared

Tutorials

Tip: If you have made a tutorial, or an addon for PlotSquared, and want us to link it here, please create an issue. We'd really appreciate it!

Terminology

Plot area

A plot area is any area that PlotSquared will manage/handle. If this is an infinite plot world, the entire world is considered to be a plot area. If you use plot clusters, then only part of the world will be a plot area, and anything outside this area will not be handled by PlotSquared.

See: MainUtil.java#getPlotAreaByString(...)

Clusters

Clusters can be created within existing plot areas, or they can be created in a previously non-plot world, which will in turn create it's own plot area.

See: PlotCluster.java See: PlotSquared.java

Road

A road is what separates each plot, and includes the wall around each plot. Attempting to get a plot at this location will return null.

See: Location.java#isPlotRoad(...)

Plot

A plot can be claimed or unclaimed. Getting a plot at a location where one isn't claimed will return a new unowned plot object.

See: MainUtil.java#getPlots(...)