mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2025-06-25 02:04:44 +02:00
Save vanilla from jar
This commit is contained in:
@ -14,6 +14,12 @@ public class RepairConfigManager {
|
||||
public RepairConfigManager(mcMMO plugin) {
|
||||
Pattern pattern = Pattern.compile("repair\\.(?:.+)\\.yml");
|
||||
File dataFolder = plugin.getDataFolder();
|
||||
|
||||
File vanilla = new File(dataFolder, "repair.vanilla.yml");
|
||||
if(!vanilla.exists()) {
|
||||
plugin.saveResource("repair.vanilla.yml", false);
|
||||
}
|
||||
|
||||
for(String location : dataFolder.list()) {
|
||||
if(!pattern.matcher(location).matches()) continue;
|
||||
|
||||
|
Reference in New Issue
Block a user