mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-04 18:12:09 +01:00
Fix IIOB error when dealing with an incomplete YAML && Nagging
By: Erik Broes <erikbroes@grum.nl>
This commit is contained in:
parent
412fb96061
commit
9d24880b0e
1 changed files with 6 additions and 1 deletions
|
@ -257,9 +257,14 @@ public final class SimplePluginManager implements PluginManager {
|
|||
Plugin plugin = registration.getPlugin();
|
||||
if (plugin.isNaggable()) {
|
||||
plugin.setNaggable(false);
|
||||
|
||||
String author = "<NoAuthorGiven>";
|
||||
if (plugin.getDescription().getAuthors().size() > 0) {
|
||||
author = plugin.getDescription().getAuthors().get(0);
|
||||
}
|
||||
server.getLogger().log(Level.SEVERE, String.format(
|
||||
"Nag author: '%s' of '%s' about the following: %s",
|
||||
plugin.getDescription().getAuthors().get(0),
|
||||
author,
|
||||
plugin.getDescription().getName(),
|
||||
ex.getMessage()
|
||||
));
|
||||
|
|
Loading…
Reference in a new issue