mirror of
https://github.com/colbster937/originblacklist.git
synced 2026-02-04 02:57:41 +00:00
only unregister routes fi enabled
This commit is contained in:
@@ -80,7 +80,9 @@ public final class OriginBlacklist {
|
|||||||
|
|
||||||
public final void shutdown() {
|
public final void shutdown() {
|
||||||
this.plugin.log(EnumLogLevel.INFO, "Shutting down...");
|
this.plugin.log(EnumLogLevel.INFO, "Shutting down...");
|
||||||
OriginBlacklistRequestHandler.unRegister(this);
|
if (this.isBlacklistAPIEnabled()) {
|
||||||
|
OriginBlacklistRequestHandler.unRegister(this);
|
||||||
|
}
|
||||||
this.plugin.shutdown();
|
this.plugin.shutdown();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user