mirror of
https://gitlab.com/phoenix-dvpmt/mmocore.git
synced 2024-11-29 01:05:40 +01:00
Fixed plugin crash when inputting an invalid party module
This commit is contained in:
parent
44f846f591
commit
5759f78924
@ -219,7 +219,7 @@ public class MMOCore extends MMOPlugin {
|
|||||||
Validate.isTrue(moduleType.isValid(), "Plugin '" + moduleType.name() + "' is not installed");
|
Validate.isTrue(moduleType.isValid(), "Plugin '" + moduleType.name() + "' is not installed");
|
||||||
partyModule = moduleType.provideModule();
|
partyModule = moduleType.provideModule();
|
||||||
getLogger().log(Level.INFO, "Hooked parties onto " + moduleType.getPluginName());
|
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());
|
getLogger().log(Level.WARNING, "Could not initialize party module: " + exception.getMessage());
|
||||||
partyModule = new MMOCorePartyModule();
|
partyModule = new MMOCorePartyModule();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user