9
0
mirror of https://github.com/Xiao-MoMi/craft-engine.git synced 2025-12-21 16:09:26 +00:00

修改间隔

This commit is contained in:
XiaoMoMi
2025-06-30 00:11:52 +08:00
parent ea06303d3b
commit 13d0ee7bce
2 changed files with 2 additions and 8 deletions

View File

@@ -26,16 +26,13 @@ public class BukkitCraftEnginePlugin extends JavaPlugin {
this.plugin.scheduler().asyncRepeating(() -> {
Collection<? extends Player> players = Bukkit.getOnlinePlayers();
if (players.size() > 20) {
for (Player player : players) {
player.sendMessage("Better Together! This server supports 20 players (Community Edition). Want more slots & features? Ask the admin about: » Going CraftEngine Premium Edition!");
}
this.plugin.logger().warn("Glad to see that your server is growing!");
this.plugin.logger().warn("The Community Edition supports up to 20 players. Unlock limitless potential with CraftEngine Premium:");
this.plugin.logger().warn("► Unlimited player capacity");
this.plugin.logger().warn("► Priority support");
this.plugin.logger().warn("► Advanced management tools");
}
}, 1, 1, TimeUnit.MINUTES);
}, 5, 5, TimeUnit.MINUTES);
this.plugin.onPluginEnable();
this.plugin.logger().warn("You're using the CraftEngine Community Edition");
this.plugin.logger().warn(" - Maximum player limit is restricted to 20");

View File

@@ -25,16 +25,13 @@ public class PaperCraftEnginePlugin extends JavaPlugin {
this.bootstrap.plugin.scheduler().asyncRepeating(() -> {
Collection<? extends Player> players = Bukkit.getOnlinePlayers();
if (players.size() > 20) {
for (Player player : players) {
player.sendMessage("Better Together! This server supports 20 players (Community Edition). Want more slots & features? Ask the admin about: » Going CraftEngine Premium Edition!");
}
this.bootstrap.plugin.logger().warn("Glad to see that your server is growing!");
this.bootstrap.plugin.logger().warn("The Community Edition supports up to 20 players. Unlock limitless potential with CraftEngine Premium:");
this.bootstrap.plugin.logger().warn("► Unlimited player capacity");
this.bootstrap.plugin.logger().warn("► Priority support");
this.bootstrap.plugin.logger().warn("► Advanced management tools");
}
}, 1, 1, TimeUnit.MINUTES);
}, 5, 5, TimeUnit.MINUTES);
this.bootstrap.plugin.onPluginEnable();
this.bootstrap.plugin.logger().warn("You're using the CraftEngine Community Edition");
this.bootstrap.plugin.logger().warn(" - Maximum player limit is restricted to 20");