mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-25 14:46:46 +01:00
Tweak save debug messages
This commit is contained in:
parent
dc2c099231
commit
312206eda5
@ -642,6 +642,8 @@ public final class PartyManager {
|
|||||||
* Save party file.
|
* Save party file.
|
||||||
*/
|
*/
|
||||||
public static void saveParties() {
|
public static void saveParties() {
|
||||||
|
mcMMO.p.debug("[Party Data] Saving...");
|
||||||
|
|
||||||
if (partyFile.exists()) {
|
if (partyFile.exists()) {
|
||||||
if (!partyFile.delete()) {
|
if (!partyFile.delete()) {
|
||||||
mcMMO.p.getLogger().warning("Could not delete party file. Party saving failed!");
|
mcMMO.p.getLogger().warning("Could not delete party file. Party saving failed!");
|
||||||
@ -651,7 +653,6 @@ public final class PartyManager {
|
|||||||
|
|
||||||
YamlConfiguration partiesFile = new YamlConfiguration();
|
YamlConfiguration partiesFile = new YamlConfiguration();
|
||||||
|
|
||||||
mcMMO.p.debug("Saving Parties... (" + parties.size() + ")");
|
|
||||||
for (Party party : parties) {
|
for (Party party : parties) {
|
||||||
String partyName = party.getName();
|
String partyName = party.getName();
|
||||||
PartyLeader leader = party.getLeader();
|
PartyLeader leader = party.getLeader();
|
||||||
|
@ -10,6 +10,7 @@ import org.bukkit.scheduler.BukkitRunnable;
|
|||||||
public class SaveTimerTask extends BukkitRunnable {
|
public class SaveTimerTask extends BukkitRunnable {
|
||||||
@Override
|
@Override
|
||||||
public void run() {
|
public void run() {
|
||||||
|
mcMMO.p.debug("[User Data] Saving...");
|
||||||
// All player data will be saved periodically through this
|
// All player data will be saved periodically through this
|
||||||
int count = 1;
|
int count = 1;
|
||||||
|
|
||||||
@ -18,6 +19,7 @@ public class SaveTimerTask extends BukkitRunnable {
|
|||||||
count++;
|
count++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
PartyManager.saveParties();
|
PartyManager.saveParties();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user