mirror of
https://github.com/songoda/FabledSkyBlock.git
synced 2024-11-13 05:53:57 +01:00
Update Island.java
Suppress Async Save YML because he is broken for save with aliases/anchor !
This commit is contained in:
parent
97c0b535c8
commit
65724fe3da
@ -267,7 +267,7 @@ public class Island {
|
||||
playerData.save();
|
||||
}
|
||||
|
||||
Bukkit.getScheduler().runTaskAsynchronously(plugin, this::save);
|
||||
save();
|
||||
|
||||
if (!mainConfigLoad.getBoolean("Island.Coop.Unload")) {
|
||||
File coopDataFile = new File(plugin.getDataFolder().toString() + "/coop-data",
|
||||
@ -554,12 +554,12 @@ public class Island {
|
||||
|
||||
public void addCoopPlayer(UUID uuid, IslandCoop islandCoop) {
|
||||
coopPlayers.put(uuid, islandCoop);
|
||||
Bukkit.getScheduler().runTaskAsynchronously(plugin, this::save);
|
||||
save();
|
||||
}
|
||||
|
||||
public void removeCoopPlayer(UUID uuid) {
|
||||
coopPlayers.remove(uuid);
|
||||
Bukkit.getScheduler().runTaskAsynchronously(plugin, this::save);
|
||||
save();
|
||||
}
|
||||
|
||||
public boolean isCoopPlayer(UUID uuid) {
|
||||
@ -793,7 +793,7 @@ public class Island {
|
||||
if(!islandStatusChangeEvent.isCancelled()) {
|
||||
this.status = status;
|
||||
getVisit().setStatus(status);
|
||||
Bukkit.getScheduler().runTaskAsynchronously(plugin, this::save);
|
||||
save();
|
||||
}
|
||||
}
|
||||
|
||||
@ -973,9 +973,10 @@ public class Island {
|
||||
return apiWrapper;
|
||||
}
|
||||
|
||||
|
||||
public void addWhitelistedPlayer(UUID uuid) {
|
||||
this.whitelistedPlayers.add(uuid);
|
||||
Bukkit.getScheduler().runTaskAsynchronously(plugin, this::save);
|
||||
save();
|
||||
}
|
||||
|
||||
public boolean isPlayerWhitelisted(UUID uuid) {
|
||||
@ -984,7 +985,7 @@ public class Island {
|
||||
|
||||
public void removeWhitelistedPlayer(UUID uuid) {
|
||||
this.whitelistedPlayers.remove(uuid);
|
||||
Bukkit.getScheduler().runTaskAsynchronously(plugin, this::save);
|
||||
save();
|
||||
}
|
||||
|
||||
public Set<UUID> getWhitelistedPlayers() {
|
||||
|
Loading…
Reference in New Issue
Block a user