Skip to content
This repository has been archived by the owner on Apr 9, 2024. It is now read-only.

Commit

Permalink
Use the right method for whitelistEnabled
Browse files Browse the repository at this point in the history
+ config migrator backup
  • Loading branch information
Andre601 committed Jun 18, 2023
1 parent 849ea16 commit 2ccb2a4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ public String parsePlaceholder(String placeholders, GenericPlayer player, Generi
if(args.length >= 2)
yield null;

yield String.valueOf(Bukkit.isWhitelistEnforced());
yield String.valueOf(Bukkit.hasWhitelist());
}
default -> null;
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.StandardCopyOption;
import java.time.Instant;
import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;
import java.util.ArrayList;
import java.util.Comparator;
Expand Down Expand Up @@ -204,7 +204,7 @@ private boolean makeBackup(){
return false;
}

String date = DateTimeFormatter.ISO_LOCAL_DATE_TIME.format(Instant.now());
String date = DateTimeFormatter.ISO_LOCAL_DATE_TIME.format(LocalDateTime.now());

File configBackup = new File(backups, "config_" + date.replace(":", "_") + ".yml");
try{
Expand Down

0 comments on commit 2ccb2a4

Please sign in to comment.