mirror of
https://github.com/PaperMC/Paper.git
synced 2026-11-24 09:59:42 -05:00
1 parent
db5dfb3f10
commit
69973b8617
3 files changed
+32
-6
No files matched your search
@@ -254,12 +254,16 @@ public final class SimplePluginManager implements PluginManager {
|
||||
try {
|
||||
registration.callEvent( event );
|
||||
} catch (AuthorNagException ex) {
|
||||
server.getLogger().log(Level.SEVERE, String.format(
|
||||
"Nag author: %s of %s about the following:",
|
||||
registration.getPlugin().getDescription().getAuthors().get(0),
|
||||
registration.getPlugin().getDescription().getName(),
|
||||
ex.getMessage()
|
||||
));
|
||||
Plugin plugin = registration.getPlugin();
|
||||
if (plugin.isNaggable()) {
|
||||
plugin.setNaggable(false);
|
||||
server.getLogger().log(Level.SEVERE, String.format(
|
||||
"Nag author: %s of %s about the following:",
|
||||
plugin.getDescription().getAuthors().get(0),
|
||||
plugin.getDescription().getName(),
|
||||
ex.getMessage()
|
||||
));
|
||||
}
|
||||
} catch (Throwable ex) {
|
||||
server.getLogger().log(Level.SEVERE, "Could not pass event " + event.getType() + " to " + registration.getPlugin().getDescription().getName(), ex);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user