Remove ability to load plugins with spaces in their name.

By: md_5 <git@md-5.net>
This commit is contained in:
Bukkit/Spigot 2017-05-14 12:00:00 +10:00
parent 32f414ff58
commit 05d2efaa86

View File

@ -136,11 +136,8 @@ public final class SimplePluginManager implements PluginManager {
server.getLogger().log(Level.SEVERE, "Could not load '" + file.getPath() + "' in folder '" + directory.getPath() + "': Restricted Name");
continue;
} else if (description.rawName.indexOf(' ') != -1) {
server.getLogger().warning(String.format(
"Plugin `%s' uses the space-character (0x20) in its name `%s' - this will not work in Minecraft 1.12",
description.getFullName(),
description.rawName
));
server.getLogger().log(Level.SEVERE, "Could not load '" + file.getPath() + "' in folder '" + directory.getPath() + "': uses the space-character (0x20) in its name");
continue;
}
} catch (InvalidDescriptionException ex) {
server.getLogger().log(Level.SEVERE, "Could not load '" + file.getPath() + "' in folder '" + directory.getPath() + "'", ex);