Fixed networking API connections being reset when reloading config

Credit: https://github.com/PlayPro/CoreProtect/pull/211/files#diff-1342ad937bb4d40012db93a64c02a41e92f2d6f35b069435f464af03aca69b00 (@vacla)
This commit is contained in:
Intelli 2022-12-10 14:12:33 -07:00
parent 3db2159292
commit 272ecae858

View File

@ -414,8 +414,11 @@ public class ConfigHandler extends Queue {
ConfigHandler.loadConfig(); // Load (or create) the configuration file.
ConfigHandler.loadDatabase(); // Initialize MySQL and create tables if necessary.
if (startup) {
ListenerHandler.registerNetworking(); // Register channels for networking API
}
}
catch (Exception e) {
e.printStackTrace();
}