Skip to content

Commit 69fd56b

Browse files
committed
Update ScriptManager
1 parent f6dd4b0 commit 69fd56b

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

common/src/main/kotlin/me/scoretwo/fastscript/api/script/ScriptManager.kt

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ class ScriptManager {
3434
folders.forEach {
3535
return it.key
3636
}
37-
return File("")
37+
return null!!
3838
}
3939

4040
private fun addFolder(folder: File) {
@@ -48,8 +48,13 @@ class ScriptManager {
4848
override fun onStop(observer: FileAlterationObserver) {}
4949
override fun onFileChange(file: File) {
5050
println(file.name + " changed.")
51+
if (file.name.endsWith(".yml", true)) {
5152

53+
}
54+
55+
if (file.parentFile == folder) {
5256

57+
}
5358

5459
}
5560
}

0 commit comments

Comments
 (0)