mirror of
https://github.com/colbster937/originblacklist.git
synced 2026-02-04 11:07:41 +00:00
Compare commits
2 Commits
v2.0.7
...
f22e800439
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f22e800439 | ||
|
|
f0274ff4d4 |
@@ -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...");
|
||||||
|
if (this.isBlacklistAPIEnabled()) {
|
||||||
OriginBlacklistRequestHandler.unRegister(this);
|
OriginBlacklistRequestHandler.unRegister(this);
|
||||||
|
}
|
||||||
this.plugin.shutdown();
|
this.plugin.shutdown();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -319,6 +321,7 @@ public final class OriginBlacklist {
|
|||||||
try {
|
try {
|
||||||
final Json5Object obj = new Json5Object();
|
final Json5Object obj = new Json5Object();
|
||||||
obj.addProperty("plugin_version", this.plugin.getPluginVersion().getVersion());
|
obj.addProperty("plugin_version", this.plugin.getPluginVersion().getVersion());
|
||||||
|
obj.addProperty("git_commit", COMMIT_L);
|
||||||
obj.addProperty("blacklist_to_whitelist", this.config.getBoolean("blacklist_to_whitelist"));
|
obj.addProperty("blacklist_to_whitelist", this.config.getBoolean("blacklist_to_whitelist"));
|
||||||
obj.addProperty("block_undefined_origin", this.config.getBoolean("block_undefined_origin"));
|
obj.addProperty("block_undefined_origin", this.config.getBoolean("block_undefined_origin"));
|
||||||
final Json5Object bObj = new Json5Object();
|
final Json5Object bObj = new Json5Object();
|
||||||
|
|||||||
Reference in New Issue
Block a user