mirror of
https://github.com/Multiverse/Multiverse-Core.git
synced 2025-02-16 20:41:59 +01:00
Reorder and add more world blacklisted names
This commit is contained in:
parent
d02cd63244
commit
bf7a708fb3
@ -19,7 +19,13 @@ import java.util.regex.Pattern;
|
||||
public class WorldNameChecker {
|
||||
|
||||
private static final Pattern WORLD_NAME_PATTERN = Pattern.compile("[a-zA-Z0-9/._-]+");
|
||||
private static final Set<String> BLACKLIST_NAMES = Set.of("plugins", "logs", "cache", "crash-reports"); // TODO: Configurable blacklist names
|
||||
private static final Set<String> BLACKLIST_NAMES = Set.of(
|
||||
"cache",
|
||||
"config",
|
||||
"crash-reports",
|
||||
"logs",
|
||||
"plugins",
|
||||
"versions");
|
||||
|
||||
/**
|
||||
* Checks if a world name is valid.
|
||||
|
Loading…
Reference in New Issue
Block a user