We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f6dd4b0 commit 69fd56bCopy full SHA for 69fd56b
common/src/main/kotlin/me/scoretwo/fastscript/api/script/ScriptManager.kt
@@ -34,7 +34,7 @@ class ScriptManager {
34
folders.forEach {
35
return it.key
36
}
37
- return File("")
+ return null!!
38
39
40
private fun addFolder(folder: File) {
@@ -48,8 +48,13 @@ class ScriptManager {
48
override fun onStop(observer: FileAlterationObserver) {}
49
override fun onFileChange(file: File) {
50
println(file.name + " changed.")
51
+ if (file.name.endsWith(".yml", true)) {
52
53
+ }
54
+
55
+ if (file.parentFile == folder) {
56
57
58
59
60
0 commit comments