Mirror von
https://github.com/PaperMC/Velocity.git
synchronisiert 2024-11-16 21:10:30 +01:00
legacy-chat: fix cancel on < 1.19
Dieser Commit ist enthalten in:
Ursprung
b1fa9dc953
Commit
039799b2d3
@ -45,7 +45,7 @@ public class LegacyChatHandler implements ChatHandler<LegacyChat> {
|
|||||||
}
|
}
|
||||||
this.server.getEventManager().fire(new PlayerChatEvent(this.player, packet.getMessage()))
|
this.server.getEventManager().fire(new PlayerChatEvent(this.player, packet.getMessage()))
|
||||||
.whenComplete((chatEvent, throwable) -> {
|
.whenComplete((chatEvent, throwable) -> {
|
||||||
if (chatEvent.getResult().isAllowed()) {
|
if (!chatEvent.getResult().isAllowed()) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren