diff --git a/API-Documentation.md b/API-Documentation.md index 9c0dcea..cbfb172 100644 --- a/API-Documentation.md +++ b/API-Documentation.md @@ -1,6 +1,9 @@ ## 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 `` 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 `` and declare it as non-transitive. + You need to add the WorldEdit repository as well. ```xml @@ -8,29 +11,30 @@ You need to add the WorldEdit repository as well. enginehub https://maven.enginehub.org/repo/ + + plotsquared + https://plotsquared.com/mvn/ + - com.github.intellectualsites.plotsquared - PlotSquared-CoreAPI - 5.1 - system - ${basedir}/lib/PlotSquared-Bukkit-5.1.jar + com.plotsquared + PlotSquared + 5.1 ``` + ## 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. ```gradle repositories { maven { url = "https://maven.enginehub.org/repo/" } // WorldEdit - flatDir { - dirs("libs") - } + maven { url = "https://plotsquared.com/mvn/" } // PlotSquared } // PlotSquared API 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: