Ensure LOGGER is not equal to plugin logger before setting parent (#1570)

This commit is contained in:
Minecrell 2017-09-30 17:51:32 +02:00 committed by Ali 'SupaHam' M
parent 13ccabecf2
commit 2c4ff35796

View File

@ -155,7 +155,9 @@ public class Essentials extends JavaPlugin implements net.ess3.api.IEssentials {
@Override
public void onEnable() {
try {
LOGGER.setParent(this.getLogger());
if (LOGGER != this.getLogger()) {
LOGGER.setParent(this.getLogger());
}
execTimer = new ExecuteTimer();
execTimer.start();
i18n = new I18n(this);