This commit is contained in:
Jesse Boyd 2016-05-20 18:20:53 +10:00
parent 987ea4110a
commit 6993e4d8ed

View File

@ -380,9 +380,11 @@ public abstract class FawePlayer<T> {
* - Usually called on logout * - Usually called on logout
*/ */
public void unregister() { public void unregister() {
getSession().setClipboard(null); if (Settings.CLEAN_HISTORY_ON_LOGOUT) {
getSession().clearHistory(); getSession().setClipboard(null);
WorldEdit.getInstance().removeSession(getPlayer()); getSession().clearHistory();
WorldEdit.getInstance().removeSession(getPlayer());
}
Fawe.get().unregister(getName()); Fawe.get().unregister(getName());
} }