diff options
-rw-r--r-- | Essentials/src/com/earth2me/essentials/EssentialsPlayerListener.java | 28 | ||||
-rw-r--r-- | Essentials/src/com/earth2me/essentials/Settings.java | 5 |
2 files changed, 0 insertions, 33 deletions
diff --git a/Essentials/src/com/earth2me/essentials/EssentialsPlayerListener.java b/Essentials/src/com/earth2me/essentials/EssentialsPlayerListener.java index f4aad6653..9b8c46de6 100644 --- a/Essentials/src/com/earth2me/essentials/EssentialsPlayerListener.java +++ b/Essentials/src/com/earth2me/essentials/EssentialsPlayerListener.java @@ -130,35 +130,7 @@ public class EssentialsPlayerListener extends PlayerListener @Override public void onPlayerQuit(PlayerEvent event) { - if (!Essentials.getSettings().getReclaimSetting()) - { - return; - } User.get(event.getPlayer()).dispose(); - Thread thread = new Thread(new Runnable() - { - @SuppressWarnings("LoggerStringConcat") - public void run() - { - try - { - Thread.sleep(1000); - Runtime rt = Runtime.getRuntime(); - double mem = rt.freeMemory(); - rt.runFinalization(); - rt.gc(); - mem = rt.freeMemory() - mem; - mem /= 1024 * 1024; - logger.info("Freed " + mem + " MB."); - } - catch (InterruptedException ex) - { - return; - } - } - }); - thread.setPriority(Thread.MIN_PRIORITY); - thread.start(); } @Override diff --git a/Essentials/src/com/earth2me/essentials/Settings.java b/Essentials/src/com/earth2me/essentials/Settings.java index 9c774b848..d2216ee9c 100644 --- a/Essentials/src/com/earth2me/essentials/Settings.java +++ b/Essentials/src/com/earth2me/essentials/Settings.java @@ -151,11 +151,6 @@ public class Settings implements IConf return ChatColor.getByCode(Integer.parseInt(colorName, 16)); } - public boolean getReclaimSetting() - { - return config.getBoolean("reclaim-onlogout", true); - } - public String getNetherName() { return config.getString("nether.folder", "nether"); |