refactor: 改为运行期模块开关并简化构建

This commit is contained in:
2026-06-10 00:39:42 +08:00
parent 0a45be832b
commit c0289c55d3
17 changed files with 271 additions and 247 deletions
@@ -10,6 +10,10 @@ public class AdminCommand extends BaseCommand {
@Override
protected boolean execute(Player player, String[] args) {
if (plugin.getAdminModeManager() == null) {
player.sendMessage(getLang().getPrefixedString("messages.module-disabled"));
return true;
}
plugin.getAdminModeManager().toggle(player);
return true;
}