mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-22 13:16:45 +01:00
Save vanilla from jar
This commit is contained in:
parent
20b169e8eb
commit
e89b3795f8
@ -14,6 +14,12 @@ public class RepairConfigManager {
|
|||||||
public RepairConfigManager(mcMMO plugin) {
|
public RepairConfigManager(mcMMO plugin) {
|
||||||
Pattern pattern = Pattern.compile("repair\\.(?:.+)\\.yml");
|
Pattern pattern = Pattern.compile("repair\\.(?:.+)\\.yml");
|
||||||
File dataFolder = plugin.getDataFolder();
|
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()) {
|
for(String location : dataFolder.list()) {
|
||||||
if(!pattern.matcher(location).matches()) continue;
|
if(!pattern.matcher(location).matches()) continue;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user