mirror of
https://github.com/boy0001/FastAsyncWorldedit.git
synced 2024-11-25 03:55:35 +01:00
Fixes #111
This commit is contained in:
parent
987ea4110a
commit
6993e4d8ed
@ -380,9 +380,11 @@ public abstract class FawePlayer<T> {
|
|||||||
* - Usually called on logout
|
* - Usually called on logout
|
||||||
*/
|
*/
|
||||||
public void unregister() {
|
public void unregister() {
|
||||||
|
if (Settings.CLEAN_HISTORY_ON_LOGOUT) {
|
||||||
getSession().setClipboard(null);
|
getSession().setClipboard(null);
|
||||||
getSession().clearHistory();
|
getSession().clearHistory();
|
||||||
WorldEdit.getInstance().removeSession(getPlayer());
|
WorldEdit.getInstance().removeSession(getPlayer());
|
||||||
|
}
|
||||||
Fawe.get().unregister(getName());
|
Fawe.get().unregister(getName());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user