Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-12-18 04:20:08 +01:00
Catch all exceptions from plugin conversation handling
Dieser Commit ist enthalten in:
Ursprung
326c2e605f
Commit
353964045a
@ -55,7 +55,15 @@ public class ConversationTracker {
|
|||||||
|
|
||||||
public synchronized void acceptConversationInput(String input) {
|
public synchronized void acceptConversationInput(String input) {
|
||||||
if (isConversing()) {
|
if (isConversing()) {
|
||||||
conversationQueue.getFirst().acceptInput(input);
|
Conversation conversation = conversationQueue.getFirst();
|
||||||
|
try {
|
||||||
|
conversation.acceptInput(input);
|
||||||
|
} catch (Throwable t) {
|
||||||
|
conversation.getContext().getPlugin().getLogger().log(Level.WARNING,
|
||||||
|
String.format("Plugin %s generated an exception whilst handling conversation input",
|
||||||
|
conversation.getContext().getPlugin().getDescription().getFullName()
|
||||||
|
), t);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren