mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2025-06-28 03:34:43 +02:00
Add more debug messages in onDisable()
So that we can track down why the disable proces slows down
This commit is contained in:
@ -134,6 +134,7 @@ public final class HolidayManager {
|
||||
|
||||
// This gets called onDisable
|
||||
public void saveAnniversaryFiles() {
|
||||
mcMMO.p.debug("Saving anniversary files...");
|
||||
String anniversaryFilePath = mcMMO.getFlatFileDirectory() + "anniversary." + CURRENT_YEAR + ".yml";
|
||||
|
||||
try {
|
||||
|
@ -151,6 +151,7 @@ public class FormulaManager {
|
||||
* Save formula file.
|
||||
*/
|
||||
public void saveFormula() {
|
||||
mcMMO.p.debug("Saving previous XP formula type...");
|
||||
YamlConfiguration formulasFile = new YamlConfiguration();
|
||||
formulasFile.set("Previous_Formula", previousFormula.toString());
|
||||
|
||||
|
@ -57,6 +57,7 @@ public final class UserManager {
|
||||
* Save all users.
|
||||
*/
|
||||
public static void saveAll() {
|
||||
mcMMO.p.debug("Saving mcMMOPlayers... (" + players.size() + ")");
|
||||
for (McMMOPlayer mcMMOPlayer : players.values()) {
|
||||
mcMMOPlayer.getProfile().save();
|
||||
}
|
||||
|
@ -161,7 +161,9 @@ public class ScoreboardManager {
|
||||
|
||||
// Called in onDisable()
|
||||
public static void teardownAll() {
|
||||
for (Player player : mcMMO.p.getServer().getOnlinePlayers()) {
|
||||
Player[] onlinePlayers = mcMMO.p.getServer().getOnlinePlayers();
|
||||
mcMMO.p.debug("Tearing down scoreboards... (" + onlinePlayers.length + ")");
|
||||
for (Player player : onlinePlayers) {
|
||||
teardownPlayer(player);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user