small code changes

This commit is contained in:
JaTiTV 2024-07-11 13:25:13 +02:00
parent 311ae66d18
commit 987af06fb4
3 changed files with 3 additions and 2 deletions

View File

@ -7,7 +7,6 @@ import org.bukkit.entity.Player;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.Map;
public class T2C_Replace {

View File

@ -61,6 +61,8 @@ public class T2C_ConfigWriter {
}
}
// Copy default values if they are missing
config.options().copyDefaults(true);

View File

@ -12,7 +12,7 @@ import java.util.List;
import java.util.Map;
public class T2C_YmlWriter {
protected static void saveConfigWithComments(File file, FileConfiguration config, Map<String, List<String>> comments, boolean oneListToString,String... headers) {
public static void saveConfigWithComments(File file, FileConfiguration config, Map<String, List<String>> comments, boolean oneListToString,String... headers) {
try {
StringBuilder configContent = new StringBuilder();
for (String h : headers) {