Mirror von
https://github.com/IntellectualSites/FastAsyncWorldEdit.git
synchronisiert 2024-12-24 18:10:08 +01:00
Correctly unregister player on quit and close clipboard if using disk.
Dieser Commit ist enthalten in:
Ursprung
3cd30ebbff
Commit
318e367cf0
@ -392,6 +392,7 @@ public class BukkitPlayer extends AbstractPlayerActor {
|
||||
@Override
|
||||
public void unregister() {
|
||||
player.removeMetadata("WE", WorldEditPlugin.getInstance());
|
||||
super.unregister();
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -370,9 +370,10 @@ public interface Player extends Entity, Actor {
|
||||
default void unregister() {
|
||||
cancel(true);
|
||||
if (Settings.IMP.HISTORY.DELETE_ON_LOGOUT) {
|
||||
getSession().setClipboard(null);
|
||||
getSession().clearHistory();
|
||||
getSession().unregisterTools(this);
|
||||
} else if (Settings.IMP.CLIPBOARD.USE_DISK) {
|
||||
getSession().setClipboard(null);
|
||||
}
|
||||
}
|
||||
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren