1
0
mirror of https://github.com/essentials/Essentials.git synced 2025-10-04 10:01:44 +02:00

cleanup powertool remove on quit

This commit is contained in:
Iaccidentally
2012-11-12 16:06:29 -05:00
parent cd23fc957a
commit 3fee4bc5ca
2 changed files with 2 additions and 3 deletions

View File

@@ -149,8 +149,7 @@ public class EssentialsPlayerListener implements Listener
} }
user.updateActivity(false); user.updateActivity(false);
//user.getPlayer().dispose(); //user.getPlayer().dispose();
boolean ptclear = ess.getSettings().getData().getGeneral().getPtClearOnQuit(); if (settings.getData().getGeneral().isPtClearOnQuit())
if (ptclear = true)
{ {
user.getData().clearAllPowertools(); user.getData().clearAllPowertools();
user.queueSave(); user.queueSave();

View File

@@ -76,5 +76,5 @@ public class General implements StorageObject
private String leaveMessage ="&e{PLAYER} has left the game"; private String leaveMessage ="&e{PLAYER} has left the game";
@Comment("Enable this to clear powertools when a player disconnects") @Comment("Enable this to clear powertools when a player disconnects")
private Boolean ptClearOnQuit = false; private boolean ptClearOnQuit = false;
} }