mirror of
https://github.com/PaperMC/Paper.git
synced 2025-03-13 11:18:23 +01:00
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();
|
||||
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"
|
||||
));
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue