From 88db73c2fbe523c85cfb2a5dd3d5e396073d1830 Mon Sep 17 00:00:00 2001 From: Esoteric Enderman Date: Mon, 28 Oct 2024 22:58:59 +0000 Subject: [PATCH] Don't use getters --- .../minecraft/plugins/library/file/FileManagedPlugin.kt | 2 +- .../minecraft/plugins/library/messages/MessageManager.kt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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)) } }