From a76a096b2fa657c8a2baedbde330c29f54e3faf4 Mon Sep 17 00:00:00 2001 From: CJ Burkey Date: Fri, 18 Nov 2022 22:08:35 -0500 Subject: [PATCH] Increment versions & fix startup error --- README.md | 4 ++-- build.gradle.kts | 10 +++++----- .../claimchunk/event/PlayerEnterChunkEvent.java | 6 ++++++ 3 files changed, 13 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index fc9560a..de00083 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ ![ClaimChunk Title](imgs/logo_carrier.png) [![Version Info](https://img.shields.io/static/v1?label=Version&message=0.0.23-RC8&color=blueviolet&style=for-the-badge)](https://github.com/cjburkey01/ClaimChunk/releases) -[![Download Info](https://img.shields.io/static/v1?label=Spigot&message=1.19&color=blueviolet&style=for-the-badge)](https://www.spigotmc.org/resources/claimchunk.44458/) +[![Download Info](https://img.shields.io/static/v1?label=Spigot&message=1.19.2&color=blueviolet&style=for-the-badge)](https://www.spigotmc.org/resources/claimchunk.44458/) [![Servers Using Claimchunk](https://img.shields.io/bstats/servers/5179?label=Servers&color=cornflowerblue&style=for-the-badge)](https://bstats.org/plugin/bukkit/ClaimChunk) [![Players Using Claimchunk](https://img.shields.io/bstats/players/5179?label=Players&color=cornflowerblue&style=for-the-badge)](https://bstats.org/plugin/bukkit/ClaimChunk) @@ -17,7 +17,7 @@ Spigot plugin for 1.17+ allowing the claiming of chunks. Usage and more information can be found [on the wiki](https://github.com/cjburkey01/ClaimChunk/wiki). -* **1.17 - 1.19** | The latest version works seamlessly. +* **1.17 - 1.19.2** | The latest version works seamlessly. * **1.13 - 1.16.5** | The latest working version is [0.0.22](https://github.com/cjburkey01/ClaimChunk/releases/tag/0.0.22). * Note: If you disable titles, 0.0.23 might work on version older than 1.17. If you experience issues, however, they may be more difficult to address. * **Pre-1.13** | The latest working version is [0.0.20](https://github.com/cjburkey01/ClaimChunk/releases/tag/0.0.20) diff --git a/build.gradle.kts b/build.gradle.kts index fc1953a..03634dd 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -25,15 +25,15 @@ object DepData { = "https://hub.spigotmc.org/jenkins/job/BuildTools/lastSuccessfulBuild/artifact/target/BuildTools.jar"; // Dependency versions - const val BUKKIT_VERSION = "1.19-R0.1-SNAPSHOT"; - const val SPIGOT_VERSION = "1.19-R0.1-SNAPSHOT"; - const val LATEST_MC_VERSION = "1.19"; + const val BUKKIT_VERSION = "1.19.2-R0.1-SNAPSHOT"; + const val SPIGOT_VERSION = "1.19.2-R0.1-SNAPSHOT"; + const val LATEST_MC_VERSION = "1.19.2"; const val VAULT_API_VERSION = "1.7"; const val WORLD_EDIT_CORE_VERSION = "7.2.9"; const val WORLD_GUARD_BUKKIT_VERSION = "7.0.7"; const val PLACEHOLDER_API_VERSION = "2.11.1"; - const val JETBRAINS_ANNOTATIONS_VERSION = "22.0.0"; - const val JUNIT_VERSION = "5.8.2"; + const val JETBRAINS_ANNOTATIONS_VERSION = "23.0.0"; + const val JUNIT_VERSION = "5.9.0"; // Goldmensch's SmartCommandDispatcher. Thank you!! const val SMART_COMMAND_DISPATCHER_VERSION = "2.0.1"; // And internationalization library! diff --git a/src/main/java/com/cjburkey/claimchunk/event/PlayerEnterChunkEvent.java b/src/main/java/com/cjburkey/claimchunk/event/PlayerEnterChunkEvent.java index 84e2aec..caa83d4 100644 --- a/src/main/java/com/cjburkey/claimchunk/event/PlayerEnterChunkEvent.java +++ b/src/main/java/com/cjburkey/claimchunk/event/PlayerEnterChunkEvent.java @@ -67,6 +67,12 @@ public HandlerList getHandlers() { return HANDLERS_LIST; } + @SuppressWarnings("unused") + @NotNull + public static HandlerList getHandlerList() { + return HANDLERS_LIST; + } + @Override public boolean isCancelled() { return this.cancelled;