diff options
author | Iaccidentally <coryhuckaby@gmail.com> | 2012-11-12 16:06:29 -0500 |
---|---|---|
committer | Iaccidentally <coryhuckaby@gmail.com> | 2012-11-12 16:06:29 -0500 |
commit | 3fee4bc5ca3d859b5dc5b85f73ef21335c598e2b (patch) | |
tree | 711b53d66d7cbc8dfd170295beca1d5520b249d9 | |
parent | cd23fc957a0d887e18083b59bbeb6b02e1586aac (diff) | |
download | Essentials-3fee4bc5ca3d859b5dc5b85f73ef21335c598e2b.tar Essentials-3fee4bc5ca3d859b5dc5b85f73ef21335c598e2b.tar.gz Essentials-3fee4bc5ca3d859b5dc5b85f73ef21335c598e2b.tar.lz Essentials-3fee4bc5ca3d859b5dc5b85f73ef21335c598e2b.tar.xz Essentials-3fee4bc5ca3d859b5dc5b85f73ef21335c598e2b.zip |
cleanup powertool remove on quit
-rw-r--r-- | Essentials/src/net/ess3/listener/EssentialsPlayerListener.java | 3 | ||||
-rw-r--r-- | Essentials/src/net/ess3/settings/General.java | 2 |
2 files changed, 2 insertions, 3 deletions
diff --git a/Essentials/src/net/ess3/listener/EssentialsPlayerListener.java b/Essentials/src/net/ess3/listener/EssentialsPlayerListener.java index dce8a0cdc..b63299268 100644 --- a/Essentials/src/net/ess3/listener/EssentialsPlayerListener.java +++ b/Essentials/src/net/ess3/listener/EssentialsPlayerListener.java @@ -149,8 +149,7 @@ public class EssentialsPlayerListener implements Listener } user.updateActivity(false); //user.getPlayer().dispose(); - boolean ptclear = ess.getSettings().getData().getGeneral().getPtClearOnQuit(); - if (ptclear = true) + if (settings.getData().getGeneral().isPtClearOnQuit()) { user.getData().clearAllPowertools(); user.queueSave(); diff --git a/Essentials/src/net/ess3/settings/General.java b/Essentials/src/net/ess3/settings/General.java index 230ac010a..10f41ea72 100644 --- a/Essentials/src/net/ess3/settings/General.java +++ b/Essentials/src/net/ess3/settings/General.java @@ -76,5 +76,5 @@ public class General implements StorageObject private String leaveMessage ="&e{PLAYER} has left the game"; @Comment("Enable this to clear powertools when a player disconnects") - private Boolean ptClearOnQuit = false; + private boolean ptClearOnQuit = false; } |