SPIGOT-6731: "Nag author" message in CraftServer lists one author only
By: md_5 <git@md-5.net>
This commit is contained in:
parent
e5b39016a0
commit
4d34ac117b
1 changed files with 3 additions and 7 deletions
|
@ -853,14 +853,10 @@ public final class CraftServer implements Server {
|
||||||
List<BukkitWorker> overdueWorkers = getScheduler().getActiveWorkers();
|
List<BukkitWorker> overdueWorkers = getScheduler().getActiveWorkers();
|
||||||
for (BukkitWorker worker : overdueWorkers) {
|
for (BukkitWorker worker : overdueWorkers) {
|
||||||
Plugin plugin = worker.getOwner();
|
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(
|
getLogger().log(Level.SEVERE, String.format(
|
||||||
"Nag author: '%s' of '%s' about the following: %s",
|
"Nag author(s): '%s' of '%s' about the following: %s",
|
||||||
author,
|
plugin.getDescription().getAuthors(),
|
||||||
plugin.getDescription().getName(),
|
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"
|
"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"
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue