Mirror von
https://github.com/PaperMC/Velocity.git
synchronisiert 2024-12-26 00:00:55 +01:00
Fix cancellation of PlayerChatEvent for key revision GENERIC_V1 (#941)
Dieser Commit ist enthalten in:
Ursprung
e08ffa1019
Commit
cb1f336d14
@ -104,9 +104,11 @@ public class KeyedChatHandler implements
|
|||||||
assert playerKey != null;
|
assert playerKey != null;
|
||||||
return pme -> {
|
return pme -> {
|
||||||
PlayerChatEvent.ChatResult chatResult = pme.getResult();
|
PlayerChatEvent.ChatResult chatResult = pme.getResult();
|
||||||
if (!chatResult.isAllowed()
|
if (!chatResult.isAllowed()) {
|
||||||
&& playerKey.getKeyRevision().compareTo(IdentifiedKey.Revision.LINKED_V2) >= 0) {
|
if (playerKey.getKeyRevision().compareTo(IdentifiedKey.Revision.LINKED_V2) >= 0) {
|
||||||
|
// Bad, very bad.
|
||||||
invalidCancel(logger, player);
|
invalidCancel(logger, player);
|
||||||
|
}
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren