Updated API Documentation (markdown)

Alexander Söderberg 2020-04-11 03:18:30 +02:00
parent aa5643490f
commit ed6e16ce14

@ -1,6 +1,9 @@
## API Documentation for PlotSquared ## API Documentation for PlotSquared
Download the PlotSquared v5 jar from Spigot and put it into your `${basedir}` folder when using maven or `libs` folder when using gradle.
If you need to access the bukkit module of PlotSquared, you need to add `PlotSquared-BukkitAPI` as `<artifactId>` and declare it as non-transitive. **This is v5 only!**
If you need to access the Bukkit module of PlotSquared, you need to add `PlotSquared-Bukkit` as `<artifactId>` and declare it as non-transitive.
You need to add the WorldEdit repository as well. You need to add the WorldEdit repository as well.
```xml ```xml
<!-- WorldEdit --> <!-- WorldEdit -->
@ -8,29 +11,30 @@ You need to add the WorldEdit repository as well.
<id>enginehub</id> <id>enginehub</id>
<url>https://maven.enginehub.org/repo/</url> <url>https://maven.enginehub.org/repo/</url>
</repository> </repository>
<repository>
<id>plotsquared</id>
<url>https://plotsquared.com/mvn/</url>
</repository>
<!-- PlotSquared API --> <!-- PlotSquared API -->
<dependency> <dependency>
<groupId>com.github.intellectualsites.plotsquared</groupId> <groupId>com.plotsquared</groupId>
<artifactId>PlotSquared-CoreAPI</artifactId> <artifactId>PlotSquared</artifactId>
<version>5.1</version> <version>5.1</version> <!-- Or 'latest' -->
<scope>system</scope>
<systemPath>${basedir}/lib/PlotSquared-Bukkit-5.1.jar</systemPath>
</dependency> </dependency>
``` ```
## Bukkit: Gradle ## Bukkit: Gradle
If you need to access the bukkit module of PlotSquared, you need to add `PlotSquared-BukkitAPI` into the `dependencies` block and declare it as non-transitive. If you need to access the bukkit module of PlotSquared, you need to add `PlotSquared-BukkitAPI` into the `dependencies` block and declare it as non-transitive.
```gradle ```gradle
repositories { repositories {
maven { url = "https://maven.enginehub.org/repo/" } // WorldEdit maven { url = "https://maven.enginehub.org/repo/" } // WorldEdit
flatDir { maven { url = "https://plotsquared.com/mvn/" } // PlotSquared
dirs("libs")
}
} }
// PlotSquared API // PlotSquared API
dependencies { dependencies {
"implementation"("name:PlotSquared-Bukkit-5.1") implementation("com.plotsquared:PlotSquared:5.1")
} }
``` ```
You can compile PlotSquared with Gradle, which is included with this repository: You can compile PlotSquared with Gradle, which is included with this repository: