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

This commit is contained in:
Josh Roy 2024-02-19 19:29:26 -05:00
parent 139db29782
commit e54ea8422a
No known key found for this signature in database
GPG Key ID: 86A69D08540BC29A
1 changed files with 5 additions and 0 deletions

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() + ")");