Use kotlin.io

This commit is contained in:
Him188 2020-01-18 23:09:22 +08:00
parent ee1d0988a6
commit ab0cecaf9f

View File

@ -126,7 +126,7 @@ object PluginManager {
logger.info("plugin.yml not found in jar " + jar.name + ", it will not be consider as a Plugin")
} else {
val description =
PluginDescription.readFromContent(URL("jar:file:" + file.absoluteFile + "!/" + pluginYml.name).openConnection().inputStream.readAllBytes().encodeToString())
PluginDescription.readFromContent(URL("jar:file:" + file.absoluteFile + "!/" + pluginYml.name).openConnection().inputStream.readBytes().encodeToString())
println(description)
pluginsFound[description.name] = description
pluginsLocation[description.name] = file