Skip to content

Commit

Permalink
fix: use plugin's data folder in AddonConfig (#60)
Browse files Browse the repository at this point in the history
fix java.lang.NoSuchMethodError: 'java.io.File org.bukkit.Bukkit.getPluginsFolder()'
  • Loading branch information
TABURELTER authored Jun 20, 2024
1 parent 20c7067 commit 6664c13
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/kotlin/su/plo/voice/discs/AddonConfig.kt
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,6 @@ class AddonConfig {
)

private fun getAddonFolder(): File =
File(Bukkit.getPluginsFolder(), "pv-addon-discs")
Bukkit.getPluginManager().getPlugin("pv-addon-discs")!!.getDataFolder()
}
}

0 comments on commit 6664c13

Please sign in to comment.