13
0
geforkt von Mirrors/Paper

Pluginnames can also space out now

By: Erik Broes <erikbroes@grum.nl>
Dieser Commit ist enthalten in:
Bukkit/Spigot 2011-04-03 19:17:18 +02:00
Ursprung 07b4fca3ae
Commit 39ceba6c4f

Datei anzeigen

@ -133,7 +133,7 @@ public final class PluginDescriptionFile {
try { try {
name = map.get("name").toString(); 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."); throw new InvalidDescriptionException("name '" + name + "' contains invalid characters.");
} }
} catch (NullPointerException ex) { } catch (NullPointerException ex) {