Skip to content

Commit

Permalink
Don't use getters
Browse files Browse the repository at this point in the history
  • Loading branch information
esotericenderman committed Oct 28, 2024
1 parent c6d807e commit 88db73c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ package foundation.esoteric.minecraft.plugins.library.file
import org.bukkit.plugin.Plugin

interface FileManagedPlugin : Plugin {
fun getFileManager(): FileManager
val fileManager: FileManager
}
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@ class MessageManager(plugin: FileManagedPlugin) {
private val messagesFolder: File

init {
messagesFolder = plugin.getFileManager().saveResourceFolder("messages", !plugin.config.getBoolean("messages.enable-customisation", false))
messagesFolder = plugin.fileManager.saveResourceFolder("messages", !plugin.config.getBoolean("messages.enable-customisation", false))
}
}

0 comments on commit 88db73c

Please sign in to comment.