geforkt von Mirrors/Paper
SPIGOT-5783: Add helpful info to UnknownDependencyException
By: md_5 <git@md-5.net>
Dieser Commit ist enthalten in:
Ursprung
40d09ae808
Commit
09c7575189
@ -266,7 +266,7 @@ public final class SimplePluginManager implements PluginManager {
|
|||||||
server.getLogger().log(
|
server.getLogger().log(
|
||||||
Level.SEVERE,
|
Level.SEVERE,
|
||||||
"Could not load '" + entry.getValue().getPath() + "' in folder '" + directory.getPath() + "'",
|
"Could not load '" + entry.getValue().getPath() + "' in folder '" + directory.getPath() + "'",
|
||||||
new UnknownDependencyException(dependency));
|
new UnknownDependencyException("Unknown dependency " + dependency + ". Please download and install " + dependency + " to run this plugin."));
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -122,7 +122,7 @@ public final class JavaPluginLoader implements PluginLoader {
|
|||||||
Plugin current = server.getPluginManager().getPlugin(pluginName);
|
Plugin current = server.getPluginManager().getPlugin(pluginName);
|
||||||
|
|
||||||
if (current == null) {
|
if (current == null) {
|
||||||
throw new UnknownDependencyException(pluginName);
|
throw new UnknownDependencyException("Unknown dependency " + pluginName + ". Please download and install " + pluginName + " to run this plugin.");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren