mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2026-02-20 18:53:11 +01:00
Expanding DB cleanup settings, Player Leveling config pt 1
This commit is contained in:
@@ -58,7 +58,7 @@ public final class FlatfileDatabaseManager implements DatabaseManager {
|
||||
|
||||
boolean powerless = true;
|
||||
for (int skill : skills.values()) {
|
||||
if (skill != 0) {
|
||||
if (skill > mcMMO.getPlayerLevelingSettings().getStartingLevel()) {
|
||||
powerless = false;
|
||||
break;
|
||||
}
|
||||
@@ -384,7 +384,7 @@ public final class FlatfileDatabaseManager implements DatabaseManager {
|
||||
// Open the file to write the player
|
||||
out = new BufferedWriter(new FileWriter(mcMMO.getUsersFilePath(), true));
|
||||
|
||||
String startingLevel = AdvancedConfig.getInstance().getStartingLevel() + ":";
|
||||
String startingLevel = mcMMO.getPlayerLevelingSettings().getStartingLevel() + ":";
|
||||
|
||||
// Add the player to the end
|
||||
out.append(playerName).append(":");
|
||||
|
||||
Reference in New Issue
Block a user