SPIGOT-6731: "Nag author" message in CraftServer lists one author only

This commit is contained in:
md_5 2021-09-10 17:49:53 +10:00
parent 6cd975d07e
commit 332335e1c6
No known key found for this signature in database
GPG Key ID: E8E901AC7C617C11

View File

@ -853,14 +853,10 @@ public final class CraftServer implements Server {
List<BukkitWorker> overdueWorkers = getScheduler().getActiveWorkers();
for (BukkitWorker worker : overdueWorkers) {
Plugin plugin = worker.getOwner();
String author = "<NoAuthorGiven>";
if (plugin.getDescription().getAuthors().size() > 0) {
author = plugin.getDescription().getAuthors().get(0);
}
getLogger().log(Level.SEVERE, String.format(
"Nag author: '%s' of '%s' about the following: %s",
author,
plugin.getDescription().getName(),
"Nag author(s): '%s' of '%s' about the following: %s",
plugin.getDescription().getAuthors(),
plugin.getDescription().getFullName(),
"This plugin is not properly shutting down its async tasks when it is being reloaded. This may cause conflicts with the newly loaded version of the plugin"
));
}