From ce17a1f577f021522a00754eb77e163796dc3c64 Mon Sep 17 00:00:00 2001 From: Indyuce Date: Mon, 1 Aug 2022 14:09:42 +0200 Subject: [PATCH] Removed useless quest module --- src/main/java/net/Indyuce/mmocore/MMOCore.java | 15 --------------- src/main/resources/config.yml | 8 -------- 2 files changed, 23 deletions(-) diff --git a/src/main/java/net/Indyuce/mmocore/MMOCore.java b/src/main/java/net/Indyuce/mmocore/MMOCore.java index 3f2172c7..9440fdaa 100644 --- a/src/main/java/net/Indyuce/mmocore/MMOCore.java +++ b/src/main/java/net/Indyuce/mmocore/MMOCore.java @@ -186,10 +186,6 @@ public class MMOCore extends JavaPlugin { // Checks if the server runs with Bungee hasBungee = SpigotConfig.bungee & !Bukkit.getServer().getOnlineMode(); - - - - /* * Resource regeneration. Must check if entity is dead otherwise regen will make * the 'respawn' button glitched plus HURT entity effect bug @@ -224,17 +220,6 @@ public class MMOCore extends JavaPlugin { if (getConfig().getBoolean("vanilla-exp-redirection.enabled")) Bukkit.getPluginManager().registerEvents(new RedirectVanillaExp(getConfig().getDouble("vanilla-exp-redirection.ratio")), this); - // Load quest module - try { - String questPluginName = UtilityMethods.enumName(getConfig().getString("quest-plugin")); - PartyModuleType moduleType = PartyModuleType.valueOf(questPluginName); - Validate.isTrue(moduleType.isValid(), "Plugin '" + moduleType.name() + "' is not installed"); - partyModule = moduleType.provideModule(); - } catch (RuntimeException exception) { - getLogger().log(Level.WARNING, "Could not initialize quest module: " + exception.getMessage()); - partyModule = new MMOCorePartyModule(); - } - // Load party module try { String partyPluginName = UtilityMethods.enumName(getConfig().getString("party-plugin")); diff --git a/src/main/resources/config.yml b/src/main/resources/config.yml index 01eaa05d..07795734 100644 --- a/src/main/resources/config.yml +++ b/src/main/resources/config.yml @@ -59,14 +59,6 @@ protect-custom-mine: false # - mcmmo party-plugin: mmocore -# Edit the plugin handling parties here. -# Supported values (just copy and paste): -# - mmocore -# - beauty_quest -# - quest_creator -# - quests -quest-plugin: mmocore - # Edit the plugin handling guilds here. # Supported values (just copy and paste): # - mmocore