mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2024-06-28 08:50:57 +00:00
Ensure LOGGER is not equal to plugin logger before setting parent (#1570)
This commit is contained in:
parent
13ccabecf2
commit
2c4ff35796
|
@ -155,7 +155,9 @@ public class Essentials extends JavaPlugin implements net.ess3.api.IEssentials {
|
||||||
@Override
|
@Override
|
||||||
public void onEnable() {
|
public void onEnable() {
|
||||||
try {
|
try {
|
||||||
LOGGER.setParent(this.getLogger());
|
if (LOGGER != this.getLogger()) {
|
||||||
|
LOGGER.setParent(this.getLogger());
|
||||||
|
}
|
||||||
execTimer = new ExecuteTimer();
|
execTimer = new ExecuteTimer();
|
||||||
execTimer.start();
|
execTimer.start();
|
||||||
i18n = new I18n(this);
|
i18n = new I18n(this);
|
||||||
|
|
Loading…
Reference in a new issue