Skip to content

Commit

Permalink
chore: warn when both history db and delete disk on logout are enabled (
Browse files Browse the repository at this point in the history
#2824)

* chore: warn when both history db and delete disk on logout are enabled

* Improve message
  • Loading branch information
dordsor21 authored Aug 25, 2024
1 parent 2b1326e commit 3b4e849
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions worldedit-core/src/main/java/com/fastasyncworldedit/core/Fawe.java
Original file line number Diff line number Diff line change
Expand Up @@ -365,6 +365,18 @@ public void setupConfigs() {
Settings.settings().QUEUE.PARALLEL_THREADS
);
}
if (Settings.settings().HISTORY.DELETE_DISK_ON_LOGOUT && Settings.settings().HISTORY.USE_DATABASE) {
LOGGER.warn("!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!");
LOGGER.warn("!!! !!!");
LOGGER.warn("!!! Using history database whilst deleting disk history! !!!");
LOGGER.warn("!!! You will not be able to rollback edits after a user logs !!!");
LOGGER.warn("!!! out, recommended to disable delete-disk-on-logout if you !!!");
LOGGER.warn("!!! you want to have full history rollback functionality. !!!");
LOGGER.warn("!!! Disable use-database if you do not need to have rollback !!!");
LOGGER.warn("!!! functionality and wish to disable this warning. !!!");
LOGGER.warn("!!! !!!");
LOGGER.warn("!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!");
}
try {
byte[] in = new byte[0];
byte[] compressed = LZ4Factory.fastestJavaInstance().fastCompressor().compress(in);
Expand Down

0 comments on commit 3b4e849

Please sign in to comment.