Fixed plugin crash when inputting an invalid party module

This commit is contained in:
Jules 2024-07-26 14:15:41 -07:00
parent 44f846f591
commit 5759f78924

View File

@ -219,7 +219,7 @@ public class MMOCore extends MMOPlugin {
Validate.isTrue(moduleType.isValid(), "Plugin '" + moduleType.name() + "' is not installed");
partyModule = moduleType.provideModule();
getLogger().log(Level.INFO, "Hooked parties onto " + moduleType.getPluginName());
} catch (RuntimeException exception) {
} catch (Throwable exception) {
getLogger().log(Level.WARNING, "Could not initialize party module: " + exception.getMessage());
partyModule = new MMOCorePartyModule();
}