Create PluginFile.kt
This commit is contained in:
12
src/main/kotlin/net/axay/kspigot/config/PluginFile.kt
Normal file
12
src/main/kotlin/net/axay/kspigot/config/PluginFile.kt
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
package net.axay.kspigot.config
|
||||||
|
|
||||||
|
import net.axay.kspigot.main.KSpigotMainInstance
|
||||||
|
import java.io.File
|
||||||
|
|
||||||
|
class PluginFile(path: String, child: String? = null)
|
||||||
|
: File(
|
||||||
|
"${KSpigotMainInstance.dataFolder}",
|
||||||
|
run {
|
||||||
|
if (child == null) path else File(path, child).path
|
||||||
|
}
|
||||||
|
)
|
Reference in New Issue
Block a user