only unregister routes fi enabled

This commit is contained in:
Colbster937
2026-01-21 10:21:05 -06:00
parent 12f9d669b4
commit f0274ff4d4

View File

@@ -80,7 +80,9 @@ public final class OriginBlacklist {
public final void shutdown() {
this.plugin.log(EnumLogLevel.INFO, "Shutting down...");
OriginBlacklistRequestHandler.unRegister(this);
if (this.isBlacklistAPIEnabled()) {
OriginBlacklistRequestHandler.unRegister(this);
}
this.plugin.shutdown();
}