mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-11-16 17:16:11 +00:00
fix: Backport fixing delay closing of clipboards on quit (#1493)
This commit is contained in:
parent
8ab1d50f01
commit
96ca83704a
@ -437,12 +437,14 @@ public interface Player extends Entity, Actor {
|
|||||||
} else {
|
} else {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
WorldEdit.getInstance().getExecutorService().submit(() -> {
|
||||||
doc.close(); // Ensure closed before deletion
|
doc.close(); // Ensure closed before deletion
|
||||||
doc.getFile().delete();
|
doc.getFile().delete();
|
||||||
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else if (Settings.IMP.CLIPBOARD.DELETE_ON_LOGOUT || Settings.IMP.CLIPBOARD.USE_DISK) {
|
} else if (Settings.IMP.CLIPBOARD.DELETE_ON_LOGOUT || Settings.IMP.CLIPBOARD.USE_DISK) {
|
||||||
session.setClipboard(null);
|
WorldEdit.getInstance().getExecutorService().submit(() -> session.setClipboard(null));
|
||||||
}
|
}
|
||||||
if (Settings.IMP.HISTORY.DELETE_ON_LOGOUT) {
|
if (Settings.IMP.HISTORY.DELETE_ON_LOGOUT) {
|
||||||
session.clearHistory();
|
session.clearHistory();
|
||||||
|
Loading…
Reference in New Issue
Block a user