9
0
mirror of https://github.com/Xiao-MoMi/craft-engine.git synced 2025-12-27 10:59:07 +00:00

Update BukkitBootstrap.java

This commit is contained in:
XiaoMoMi
2025-04-13 01:56:19 +08:00
parent 1b2d85bb80
commit e965f276e5

View File

@@ -27,6 +27,7 @@ public class BukkitBootstrap extends JavaPlugin {
public void onEnable() {
if (!Bukkit.getServer().getOnlineMode()) {
this.plugin.logger().warn("CraftEngine Community Edition requires online mode to be enabled.");
Bukkit.getPluginManager().disablePlugin(this);
} else {
this.plugin.scheduler().asyncRepeating(() -> {
Collection<? extends Player> players = Bukkit.getOnlinePlayers();