Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
HaHaWTH committed Mar 10, 2024
1 parent 632427c commit d797044
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 11 deletions.
6 changes: 0 additions & 6 deletions src/main/java/io/wdsj/asw/AdvancedSensitiveWords.java
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@
import org.bukkit.plugin.java.JavaPlugin;

import java.io.File;
import java.net.ProxySelector;
import java.util.Objects;
import java.util.concurrent.atomic.AtomicReference;

Expand Down Expand Up @@ -126,11 +125,6 @@ public void onEnable() {
}
long endTime = System.currentTimeMillis();
getLogger().info("AdvancedSensitiveWords is enabled!(took " + (endTime - startTime) + "ms)");
// bro, don't bytecode this, you can just disable it in the config TAT
if (Math.random() < 0.1 && !settingsManager.getProperty(PluginSettings.DISABLE_DONATION)) {
getLogger().info("This plugin takes over 600 hours to develop and optimize, if you think it's nice, consider" +
" support: https://afdian.net/a/114514woxiuyuan/");
}
}


Expand Down
5 changes: 0 additions & 5 deletions src/main/java/io/wdsj/asw/setting/PluginSettings.java
Original file line number Diff line number Diff line change
Expand Up @@ -146,11 +146,6 @@ public class PluginSettings implements SettingsHolder {
"Sensitive word whitelist"})
public static final Property<List<String>> WHITE_LIST = newListProperty("Plugin.whiteList", "3p");

@Comment({"是否关闭插件启动时的求赞助消息:(",
"赞助链接: https://afdian.net/a/114514woxiuyuan/", "Whether to disable donation request messages on plugin startup",
"Donation link: https://afdian.net/a/114514woxiuyuan/"})
public static final Property<Boolean> DISABLE_DONATION = newProperty("Plugin.disableDonation", false);

@Comment({"替换还是取消(replace/cancel)",
"Replace or cancel (replace/cancel)"})
public static final Property<String> CHAT_METHOD = newProperty("Chat.method", "replace");
Expand Down

0 comments on commit d797044

Please sign in to comment.