diff options
| author | CalMWolfs <94038482+CalMWolfs@users.noreply.github.com> | 2024-06-07 12:59:25 +1000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-06-07 12:59:25 +1000 |
| commit | 999ff2256c1384a5ca4db2e7069207127404cfff (patch) | |
| tree | 0627f6370b1f94d2697ed1af7827046e75c880c9 /src/main/java/at/hannibal2/skyhanni/features/commands | |
| parent | 0d4efbd22a8ee629fe2f504fe3aa7acb78a66a2e (diff) | |
| download | skyhanni-999ff2256c1384a5ca4db2e7069207127404cfff.tar.gz skyhanni-999ff2256c1384a5ca4db2e7069207127404cfff.tar.bz2 skyhanni-999ff2256c1384a5ca4db2e7069207127404cfff.zip | |
Backend: Use event.cancel() over event.isCanceled = true for LorenzEvents (#1915)
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/features/commands')
4 files changed, 4 insertions, 4 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/commands/SendCoordinatedCommand.kt b/src/main/java/at/hannibal2/skyhanni/features/commands/SendCoordinatedCommand.kt index 09626067c..ba65fac3a 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/commands/SendCoordinatedCommand.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/commands/SendCoordinatedCommand.kt @@ -13,7 +13,7 @@ object SendCoordinatedCommand { fun onMessageSendToServer(event: MessageSendToServerEvent) { val message = event.message if (message.startsWith("/sendcoords")) { - event.isCanceled = true + event.cancel() val description = message.substringAfter("/sendcoords").trim() sendCoordinates(description) } diff --git a/src/main/java/at/hannibal2/skyhanni/features/commands/ViewRecipeCommand.kt b/src/main/java/at/hannibal2/skyhanni/features/commands/ViewRecipeCommand.kt index 401ac7fbb..e3d6a5713 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/commands/ViewRecipeCommand.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/commands/ViewRecipeCommand.kt @@ -34,7 +34,7 @@ object ViewRecipeCommand { group("item").uppercase().replace(" ", "_") } ?: return - event.isCanceled = true + event.cancel() HypixelCommands.viewRecipe(item) } diff --git a/src/main/java/at/hannibal2/skyhanni/features/commands/WarpIsCommand.kt b/src/main/java/at/hannibal2/skyhanni/features/commands/WarpIsCommand.kt index e49ca5152..b78e6cf63 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/commands/WarpIsCommand.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/commands/WarpIsCommand.kt @@ -16,7 +16,7 @@ object WarpIsCommand { if (!SkyHanniMod.feature.misc.commands.replaceWarpIs) return if (event.message.lowercase() == "/warp is") { - event.isCanceled = true + event.cancel() HypixelCommands.island() } } diff --git a/src/main/java/at/hannibal2/skyhanni/features/commands/WikiManager.kt b/src/main/java/at/hannibal2/skyhanni/features/commands/WikiManager.kt index 880bd5a69..b8e14d280 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/commands/WikiManager.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/commands/WikiManager.kt @@ -38,7 +38,7 @@ object WikiManager { val message = event.message.lowercase() if (!(message.startsWith("/wiki"))) return - event.isCanceled = true + event.cancel() if (message == "/wiki") { sendWikiMessage() return |
