From e3fb1762a1ba63ed10ab2c236b03175fa28cba96 Mon Sep 17 00:00:00 2001 From: William Date: Sun, 9 Jun 2024 14:47:26 +0100 Subject: [PATCH] fix: display correct NotRegisteredException cause --- .../src/main/java/net/william278/husksync/api/HuskSyncAPI.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/src/main/java/net/william278/husksync/api/HuskSyncAPI.java b/common/src/main/java/net/william278/husksync/api/HuskSyncAPI.java index 106f5efe..451d9b90 100644 --- a/common/src/main/java/net/william278/husksync/api/HuskSyncAPI.java +++ b/common/src/main/java/net/william278/husksync/api/HuskSyncAPI.java @@ -519,7 +519,7 @@ public class HuskSyncAPI { 3) You are attempting to access HuskSync on plugin construction/before your plugin has enabled."""; NotRegisteredException(@NotNull String reasons) { - super("Could not access the HuskSync API as it has not yet been registered. %s".formatted(REASONS)); + super("Could not access the HuskSync API as it has not yet been registered. %s".formatted(reasons)); } NotRegisteredException() {