From 39ceba6c4f4d38a0eca93cec21c22b4c7f9d8091 Mon Sep 17 00:00:00 2001 From: Bukkit/Spigot Date: Sun, 3 Apr 2011 19:17:18 +0200 Subject: [PATCH] Pluginnames can also space out now By: Erik Broes --- .../src/main/java/org/bukkit/plugin/PluginDescriptionFile.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/paper-api/src/main/java/org/bukkit/plugin/PluginDescriptionFile.java b/paper-api/src/main/java/org/bukkit/plugin/PluginDescriptionFile.java index 8e42311a38..be4fb0aff6 100644 --- a/paper-api/src/main/java/org/bukkit/plugin/PluginDescriptionFile.java +++ b/paper-api/src/main/java/org/bukkit/plugin/PluginDescriptionFile.java @@ -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) {