mirror of
				https://github.com/mcMMO-Dev/mcMMO.git
				synced 2025-10-31 01:03:44 +01:00 
			
		
		
		
	Save vanilla from jar
This commit is contained in:
		| @@ -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; | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 NuclearW
					NuclearW