diff --git a/lib/src/main/kotlin/foundation/esoteric/minecraft/plugins/library/file/FileManagedPlugin.kt b/lib/src/main/kotlin/foundation/esoteric/minecraft/plugins/library/file/FileManagedPlugin.kt index 961029c..67687f4 100644 --- a/lib/src/main/kotlin/foundation/esoteric/minecraft/plugins/library/file/FileManagedPlugin.kt +++ b/lib/src/main/kotlin/foundation/esoteric/minecraft/plugins/library/file/FileManagedPlugin.kt @@ -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 } diff --git a/lib/src/main/kotlin/foundation/esoteric/minecraft/plugins/library/messages/MessageManager.kt b/lib/src/main/kotlin/foundation/esoteric/minecraft/plugins/library/messages/MessageManager.kt index 1384ae1..0f05dc6 100644 --- a/lib/src/main/kotlin/foundation/esoteric/minecraft/plugins/library/messages/MessageManager.kt +++ b/lib/src/main/kotlin/foundation/esoteric/minecraft/plugins/library/messages/MessageManager.kt @@ -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)) } }