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

By: md_5 <git@md-5.net>
This commit is contained in:
CraftBukkit/Spigot 2021-09-10 17:49:53 +10:00
parent e5b39016a0
commit 4d34ac117b

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"
));
}