Tweak save debug messages

This commit is contained in:
nossr50 2021-03-16 16:43:25 -07:00
parent dc2c099231
commit 312206eda5
2 changed files with 4 additions and 1 deletions

View File

@ -642,6 +642,8 @@ public final class PartyManager {
* Save party file.
*/
public static void saveParties() {
mcMMO.p.debug("[Party Data] Saving...");
if (partyFile.exists()) {
if (!partyFile.delete()) {
mcMMO.p.getLogger().warning("Could not delete party file. Party saving failed!");
@ -651,7 +653,6 @@ public final class PartyManager {
YamlConfiguration partiesFile = new YamlConfiguration();
mcMMO.p.debug("Saving Parties... (" + parties.size() + ")");
for (Party party : parties) {
String partyName = party.getName();
PartyLeader leader = party.getLeader();

View File

@ -10,6 +10,7 @@ import org.bukkit.scheduler.BukkitRunnable;
public class SaveTimerTask extends BukkitRunnable {
@Override
public void run() {
mcMMO.p.debug("[User Data] Saving...");
// All player data will be saved periodically through this
int count = 1;
@ -18,6 +19,7 @@ public class SaveTimerTask extends BukkitRunnable {
count++;
}
PartyManager.saveParties();
}
}