Fix messages not sending after /ess reload (Fixes #5663)

This commit is contained in:
Josh Roy 2024-02-19 19:37:03 -05:00 committed by GitHub
parent 139db29782
commit 4386713807
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -635,6 +635,11 @@ public class Essentials extends JavaPlugin implements net.ess3.api.IEssentials {
public void reload() {
Trade.closeLog();
if (bukkitAudience != null) {
bukkitAudience.close();
bukkitAudience = null;
}
for (final IConf iConf : confList) {
iConf.reloadConfig();
execTimer.mark("Reload(" + iConf.getClass().getSimpleName() + ")");