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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user