Skip to content

Commit f0274ff

Browse files
committed
only unregister routes fi enabled
1 parent 12f9d66 commit f0274ff

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/main/java/xyz/webmc/originblacklist/base/OriginBlacklist.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,9 @@ public final void init() {
8080

8181
public final void shutdown() {
8282
this.plugin.log(EnumLogLevel.INFO, "Shutting down...");
83-
OriginBlacklistRequestHandler.unRegister(this);
83+
if (this.isBlacklistAPIEnabled()) {
84+
OriginBlacklistRequestHandler.unRegister(this);
85+
}
8486
this.plugin.shutdown();
8587
}
8688

0 commit comments

Comments
 (0)