mirror of
https://github.com/Xiao-MoMi/craft-engine.git
synced 2025-12-22 08:29:21 +00:00
修改间隔
This commit is contained in:
@@ -26,16 +26,13 @@ public class BukkitCraftEnginePlugin extends JavaPlugin {
|
|||||||
this.plugin.scheduler().asyncRepeating(() -> {
|
this.plugin.scheduler().asyncRepeating(() -> {
|
||||||
Collection<? extends Player> players = Bukkit.getOnlinePlayers();
|
Collection<? extends Player> players = Bukkit.getOnlinePlayers();
|
||||||
if (players.size() > 20) {
|
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("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("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("► Unlimited player capacity");
|
||||||
this.plugin.logger().warn("► Priority support");
|
this.plugin.logger().warn("► Priority support");
|
||||||
this.plugin.logger().warn("► Advanced management tools");
|
this.plugin.logger().warn("► Advanced management tools");
|
||||||
}
|
}
|
||||||
}, 1, 1, TimeUnit.MINUTES);
|
}, 5, 5, TimeUnit.MINUTES);
|
||||||
this.plugin.onPluginEnable();
|
this.plugin.onPluginEnable();
|
||||||
this.plugin.logger().warn("You're using the CraftEngine Community Edition");
|
this.plugin.logger().warn("You're using the CraftEngine Community Edition");
|
||||||
this.plugin.logger().warn(" - Maximum player limit is restricted to 20");
|
this.plugin.logger().warn(" - Maximum player limit is restricted to 20");
|
||||||
|
|||||||
@@ -25,16 +25,13 @@ public class PaperCraftEnginePlugin extends JavaPlugin {
|
|||||||
this.bootstrap.plugin.scheduler().asyncRepeating(() -> {
|
this.bootstrap.plugin.scheduler().asyncRepeating(() -> {
|
||||||
Collection<? extends Player> players = Bukkit.getOnlinePlayers();
|
Collection<? extends Player> players = Bukkit.getOnlinePlayers();
|
||||||
if (players.size() > 20) {
|
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("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("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("► Unlimited player capacity");
|
||||||
this.bootstrap.plugin.logger().warn("► Priority support");
|
this.bootstrap.plugin.logger().warn("► Priority support");
|
||||||
this.bootstrap.plugin.logger().warn("► Advanced management tools");
|
this.bootstrap.plugin.logger().warn("► Advanced management tools");
|
||||||
}
|
}
|
||||||
}, 1, 1, TimeUnit.MINUTES);
|
}, 5, 5, TimeUnit.MINUTES);
|
||||||
this.bootstrap.plugin.onPluginEnable();
|
this.bootstrap.plugin.onPluginEnable();
|
||||||
this.bootstrap.plugin.logger().warn("You're using the CraftEngine Community Edition");
|
this.bootstrap.plugin.logger().warn("You're using the CraftEngine Community Edition");
|
||||||
this.bootstrap.plugin.logger().warn(" - Maximum player limit is restricted to 20");
|
this.bootstrap.plugin.logger().warn(" - Maximum player limit is restricted to 20");
|
||||||
|
|||||||
Reference in New Issue
Block a user