13
0
geforkt von Mirrors/Paper

Remove ability to load plugins with spaces in their name.

By: md_5 <git@md-5.net>
Dieser Commit ist enthalten in:
Bukkit/Spigot 2017-05-14 12:00:00 +10:00
Ursprung 32f414ff58
Commit 05d2efaa86

Datei anzeigen

@ -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"); server.getLogger().log(Level.SEVERE, "Could not load '" + file.getPath() + "' in folder '" + directory.getPath() + "': Restricted Name");
continue; continue;
} else if (description.rawName.indexOf(' ') != -1) { } else if (description.rawName.indexOf(' ') != -1) {
server.getLogger().warning(String.format( server.getLogger().log(Level.SEVERE, "Could not load '" + file.getPath() + "' in folder '" + directory.getPath() + "': uses the space-character (0x20) in its name");
"Plugin `%s' uses the space-character (0x20) in its name `%s' - this will not work in Minecraft 1.12", continue;
description.getFullName(),
description.rawName
));
} }
} catch (InvalidDescriptionException ex) { } catch (InvalidDescriptionException ex) {
server.getLogger().log(Level.SEVERE, "Could not load '" + file.getPath() + "' in folder '" + directory.getPath() + "'", ex); server.getLogger().log(Level.SEVERE, "Could not load '" + file.getPath() + "' in folder '" + directory.getPath() + "'", ex);