Skip to content

Commit

Permalink
Fixed a problem with plugin folders not being created properly
Browse files Browse the repository at this point in the history
  • Loading branch information
Nlkomaru committed Feb 12, 2022
1 parent 1ee4466 commit 33625ea
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main/kotlin/dev/nikomaru/raceassist/utils/Lang.kt
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ object Lang {
suspend fun load() {
withContext(Dispatchers.IO) {
val lang = listOf("de_DE", "en_US", "fr_FR", "he_IL", "ja_JP", "ko_KR", "pt_PT", "tok", "zh_CN", "zh_TW")
if (!plugin.dataFolder.exists()) {
plugin.dataFolder.mkdir()
}
val pluginDir = File(plugin.dataFolder, "lang")
if (!pluginDir.exists()) {
pluginDir.mkdir()
Expand Down

0 comments on commit 33625ea

Please sign in to comment.