diff options
author | md_5 <git@md-5.net> | 2017-05-14 12:00:00 +1000 |
---|---|---|
committer | md_5 <git@md-5.net> | 2017-05-14 12:00:00 +1000 |
commit | 11b675fca439088cd34940ec72f75c93be46b1c0 (patch) | |
tree | 6ed100ae40741aff730c46c2535c5c936f7fc00a /src/main/java/org/bukkit | |
parent | f2a9b248754b4fd91c0ae69d659a8bbf64ed4929 (diff) | |
download | bukkit-11b675fca439088cd34940ec72f75c93be46b1c0.tar bukkit-11b675fca439088cd34940ec72f75c93be46b1c0.tar.gz bukkit-11b675fca439088cd34940ec72f75c93be46b1c0.tar.lz bukkit-11b675fca439088cd34940ec72f75c93be46b1c0.tar.xz bukkit-11b675fca439088cd34940ec72f75c93be46b1c0.zip |
Remove ability to load plugins with spaces in their name.
Diffstat (limited to 'src/main/java/org/bukkit')
-rw-r--r-- | src/main/java/org/bukkit/plugin/SimplePluginManager.java | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/main/java/org/bukkit/plugin/SimplePluginManager.java b/src/main/java/org/bukkit/plugin/SimplePluginManager.java index 60d3eca7..00fa7815 100644 --- a/src/main/java/org/bukkit/plugin/SimplePluginManager.java +++ b/src/main/java/org/bukkit/plugin/SimplePluginManager.java @@ -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); |