Skip to content

Commit

Permalink
Remove logs and copying
Browse files Browse the repository at this point in the history
  • Loading branch information
EsotericEnderman committed Nov 1, 2024
1 parent fc4dba9 commit ff24c04
Showing 1 changed file with 0 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,16 +22,13 @@ class ResourcePackManager(private val plugin: FileManagedPlugin) {

init {
val resourcePackFolder: File = plugin.fileManager.saveResourceFolder(resourcePackResourceFolderName, true)
resourcePackFolder.listFiles()?.forEach { file -> println(file.name) }

val resourceZipFilePath = plugin.dataPath.toString() + File.separator + resourcePackResourceFolderName + ".zip"

try {
resourcePackZipFile = File(resourceZipFilePath)
FileUtility.zipFolder(resourcePackFolder, resourcePackZipFile!!)

FileUtils.copyFile(resourcePackZipFile, File("./TestPluginResourcePack.zip"))

FileUtils.deleteDirectory(resourcePackFolder)
} catch (exception: Exception) {
exception.printStackTrace()
Expand Down

0 comments on commit ff24c04

Please sign in to comment.