diff --git a/Bukkit/build.gradle.kts b/Bukkit/build.gradle.kts index 65f888cec..0140a4612 100644 --- a/Bukkit/build.gradle.kts +++ b/Bukkit/build.gradle.kts @@ -97,6 +97,7 @@ tasks.named("shadowJar") { tasks { withType { + val isRelease = if (rootProject.version.toString().endsWith("-SNAPSHOT")) "TODO" else rootProject.version.toString() val opt = options as StandardJavadocDocletOptions opt.links("https://jd.papermc.io/paper/1.19/") opt.links("https://docs.enginehub.org/javadoc/com.sk89q.worldedit/worldedit-bukkit/" + libs.worldeditBukkit.get().versionConstraint.toString()) @@ -104,6 +105,11 @@ tasks { opt.links("https://jd.adventure.kyori.net/api/4.12.0/") opt.links("https://google.github.io/guice/api-docs/" + libs.guice.get().versionConstraint.toString() + "/javadoc/") opt.links("https://checkerframework.org/api/") + opt.isLinkSource = true + opt.bottom(File("$rootDir/javadocfooter.html").readText()) + opt.isUse = true opt.encoding("UTF-8") + opt.keyWords() + opt.addStringOption("-since", isRelease) } } diff --git a/Core/build.gradle.kts b/Core/build.gradle.kts index 6d1b762db..447b6370a 100644 --- a/Core/build.gradle.kts +++ b/Core/build.gradle.kts @@ -65,6 +65,7 @@ tasks.processResources { tasks { withType { + val isRelease = if (rootProject.version.toString().endsWith("-SNAPSHOT")) "TODO" else rootProject.version.toString() val opt = options as StandardJavadocDocletOptions opt.links("https://docs.enginehub.org/javadoc/com.sk89q.worldedit/worldedit-core/" + libs.worldeditCore.get().versionConstraint.toString()) opt.links("https://jd.adventure.kyori.net/api/4.12.0/") @@ -72,6 +73,11 @@ tasks { opt.links("https://google.github.io/guice/api-docs/" + libs.guice.get().versionConstraint.toString() + "/javadoc/") opt.links("https://checkerframework.org/api/") opt.links("https://javadoc.io/doc/com.intellectualsites.informative-annotations/informative-annotations/latest/") + opt.isLinkSource = true + opt.bottom(File("$rootDir/javadocfooter.html").readText()) + opt.isUse = true opt.encoding("UTF-8") + opt.keyWords() + opt.addStringOption("-since", isRelease) } } diff --git a/Core/src/main/java/com/plotsquared/core/events/PlayerAutoPlotEvent.java b/Core/src/main/java/com/plotsquared/core/events/PlayerAutoPlotEvent.java index 97b4cd5fb..03e9b10f9 100644 --- a/Core/src/main/java/com/plotsquared/core/events/PlayerAutoPlotEvent.java +++ b/Core/src/main/java/com/plotsquared/core/events/PlayerAutoPlotEvent.java @@ -105,6 +105,38 @@ public class PlayerAutoPlotEvent extends PlotEvent implements CancellablePlotEve return this.plotArea; } + /** + * @deprecated for removal. Use {@link PlayerAutoPlotEvent#getSizeX()} + */ + @Deprecated(forRemoval = true, since = "6.1.0") + public int getSize_x() { + return getSizeX(); + } + + /** + * @deprecated for removal. Use {@link PlayerAutoPlotEvent#setSizeX(int)} + */ + @Deprecated(forRemoval = true, since = "6.1.0") + public void setSize_x(int sizeX) { + setSizeX(sizeX); + } + + /** + * @deprecated for removal. Use {@link PlayerAutoPlotEvent#getSizeZ()} + */ + @Deprecated(forRemoval = true, since = "6.1.0") + public int getSize_z() { + return getSizeZ(); + } + + /** + * @deprecated for removal. Use {@link PlayerAutoPlotEvent#setSizeZ(int)} + */ + @Deprecated(forRemoval = true, since = "6.1.0") + public void setSize_z(int sizeZ) { + setSizeZ(sizeZ); + } + /** * Get the x size of the auto-area * diff --git a/javadocfooter.html b/javadocfooter.html new file mode 100644 index 000000000..b6528c732 --- /dev/null +++ b/javadocfooter.html @@ -0,0 +1,4 @@ +Javadocs generated for + PlotSquared | + Documentation | +Visit us on our Discord server :)