From e23e8d388451fe2b54c8e029cd4248de45a19057 Mon Sep 17 00:00:00 2001 From: Rockyers Date: Sun, 13 Aug 2023 19:08:43 -0700 Subject: [PATCH] Added FoliaLib to main class --- src/main/java/com/gmail/nossr50/mcMMO.java | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/gmail/nossr50/mcMMO.java b/src/main/java/com/gmail/nossr50/mcMMO.java index 8721867f6..e011ec42e 100644 --- a/src/main/java/com/gmail/nossr50/mcMMO.java +++ b/src/main/java/com/gmail/nossr50/mcMMO.java @@ -53,6 +53,7 @@ import com.gmail.nossr50.util.skills.SkillTools; import com.gmail.nossr50.util.skills.SmeltingTracker; import com.gmail.nossr50.util.upgrade.UpgradeManager; import com.gmail.nossr50.worldguard.WorldGuardManager; +import com.tcoded.folialib.FoliaLib; import net.kyori.adventure.platform.bukkit.BukkitAudiences; import net.shatteredlands.shatt.backup.ZipLibrary; import org.bstats.bukkit.Metrics; @@ -137,6 +138,9 @@ public class mcMMO extends JavaPlugin { private GeneralConfig generalConfig; private AdvancedConfig advancedConfig; + + private FoliaLib foliaLib; + // private RepairConfig repairConfig; // private SalvageConfig salvageConfig; // private PersistentDataConfig persistentDataConfig; @@ -168,7 +172,7 @@ public class mcMMO extends JavaPlugin { getLogger().setFilter(new LogFilter(this)); //Folia lib plugin instance - FoliaLib foliaLib = new FoliaLib(this); + foliaLib = new FoliaLib(this); setupFilePaths(); generalConfig = new GeneralConfig(getDataFolder()); //Load before skillTools @@ -773,4 +777,8 @@ public class mcMMO extends JavaPlugin { public @NotNull AdvancedConfig getAdvancedConfig() { return advancedConfig; } + + public @NotNull FoliaLib getFoliaLib() { + return foliaLib; + } }