mirror of
https://github.com/PaperMC/Paper.git
synced 2025-03-10 22:05:10 +01:00
Pluginnames can also space out now
By: Erik Broes <erikbroes@grum.nl>
This commit is contained in:
parent
07b4fca3ae
commit
39ceba6c4f
@ -133,7 +133,7 @@ public final class PluginDescriptionFile {
|
||||
try {
|
||||
name = map.get("name").toString();
|
||||
|
||||
if (!name.matches("^[A-Za-z0-9_.-]+$")) {
|
||||
if (!name.matches("^[A-Za-z0-9 _.-]+$")) {
|
||||
throw new InvalidDescriptionException("name '" + name + "' contains invalid characters.");
|
||||
}
|
||||
} catch (NullPointerException ex) {
|
||||
|
Loading…
Reference in New Issue
Block a user