diff options
author | snowleo <schneeleo@gmail.com> | 2011-07-19 12:04:06 +0200 |
---|---|---|
committer | snowleo <schneeleo@gmail.com> | 2011-07-19 12:04:06 +0200 |
commit | 17ba7e2a3dcdf5172f1d0be2a456ecaf6c3b51ac (patch) | |
tree | 76e1e5a6001270174a480a449547598fb5b7b9f0 /EssentialsGroupManager/src/org/anjocaido | |
parent | 625164dac2e2c2eb5785f26074dc2eb56e897af8 (diff) | |
download | Essentials-17ba7e2a3dcdf5172f1d0be2a456ecaf6c3b51ac.tar Essentials-17ba7e2a3dcdf5172f1d0be2a456ecaf6c3b51ac.tar.gz Essentials-17ba7e2a3dcdf5172f1d0be2a456ecaf6c3b51ac.tar.lz Essentials-17ba7e2a3dcdf5172f1d0be2a456ecaf6c3b51ac.tar.xz Essentials-17ba7e2a3dcdf5172f1d0be2a456ecaf6c3b51ac.zip |
Fix duplicated logger messages in GM after reload
Diffstat (limited to 'EssentialsGroupManager/src/org/anjocaido')
-rw-r--r-- | EssentialsGroupManager/src/org/anjocaido/groupmanager/GroupManager.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/EssentialsGroupManager/src/org/anjocaido/groupmanager/GroupManager.java b/EssentialsGroupManager/src/org/anjocaido/groupmanager/GroupManager.java index 1594755de..890af718b 100644 --- a/EssentialsGroupManager/src/org/anjocaido/groupmanager/GroupManager.java +++ b/EssentialsGroupManager/src/org/anjocaido/groupmanager/GroupManager.java @@ -48,6 +48,7 @@ public class GroupManager extends JavaPlugin { private boolean validateOnlinePlayer = true; private boolean isReady = false; private GMConfiguration config; + private GMLoggerHandler ch; public static final Logger logger = Logger.getLogger(GroupManager.class.getName()); @Override @@ -59,12 +60,13 @@ public class GroupManager extends JavaPlugin { // EXAMPLE: Custom code, here we just output some info so we can check all is well PluginDescriptionFile pdfFile = this.getDescription(); System.out.println(pdfFile.getName() + " version " + pdfFile.getVersion() + " is disabled!"); + GroupManager.logger.removeHandler(ch); } @Override public void onEnable() { GroupManager.logger.setUseParentHandlers(false); - GMLoggerHandler ch = new GMLoggerHandler(); + ch = new GMLoggerHandler(); GroupManager.logger.addHandler(ch); logger.setLevel(Level.ALL); if (worldsHolder == null) { |