Allow Disabling Player Data Saving

By: Sander Knauff <sanderknauff@hotmail.com>
This commit is contained in:
CraftBukkit/Spigot
2020-11-07 18:23:42 +11:00
parent 76c24a1454
commit e81bcdf643
2 changed files with 15 additions and 2 deletions

View File

@@ -396,4 +396,9 @@ public class SpigotConfig
SpigotConfig.logVillagerDeaths = SpigotConfig.getBoolean("settings.log-villager-deaths", true);
SpigotConfig.logNamedDeaths = SpigotConfig.getBoolean("settings.log-named-deaths", true);
}
public static boolean disablePlayerDataSaving;
private static void disablePlayerDataSaving() {
SpigotConfig.disablePlayerDataSaving = SpigotConfig.getBoolean("players.disable-saving", false);
}
}