Compare commits
No commits in common. "713a2d63a70ea61a96957986f2c2536c3edc4ddf" and "9107479b0884f3472d82721809b2028d29e52792" have entirely different histories.
713a2d63a7
...
9107479b08
@ -24,7 +24,6 @@ public class Foundation extends JavaPlugin {
|
||||
Bukkit.getScheduler().scheduleSyncRepeatingTask(this, () -> {
|
||||
manager.saveAllPlayers();
|
||||
}, 1200L, 1200L);
|
||||
saveDefaultConfig();
|
||||
getLogger().info("插件启用成功。");
|
||||
}
|
||||
|
||||
|
||||
@ -14,9 +14,6 @@ public class SaveManager {
|
||||
|
||||
public void saveAllPlayers() {
|
||||
boolean isFail = false;
|
||||
if (Bukkit.getOnlinePlayers().isEmpty()) {
|
||||
return;
|
||||
}
|
||||
for (Player player : Bukkit.getOnlinePlayers()) {
|
||||
if (!listener.savePlayer(player)) {
|
||||
isFail = true;
|
||||
@ -27,7 +24,7 @@ public class SaveManager {
|
||||
foundation.getLogger().warning("已完成自动保存例程,但发生了错误。");
|
||||
}
|
||||
else {
|
||||
if (foundation.getConfig().getBoolean("logging")) { foundation.getLogger().info("已完成自动保存例程。"); }
|
||||
foundation.getLogger().info("已完成自动保存例程。");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -1 +0,0 @@
|
||||
logging: false
|
||||
Loading…
x
Reference in New Issue
Block a user