13
0
geforkt von Mirrors/Velocity

Add deprecation notice (#1442)

Dieser Commit ist enthalten in:
Elikill58 2024-10-21 02:05:29 +02:00 committet von GitHub
Ursprung 99aaf3ce4e
Commit 9a93bbe990
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: B5690EEEBB952194

Datei anzeigen

@ -51,6 +51,13 @@ public final class PlayerChatEvent implements ResultedEvent<PlayerChatEvent.Chat
return result; return result;
} }
/**
* Set result for the event.
*
* @param result the result of event
* @deprecated for 1.19.1 and newer, set this as denied will kick users
*/
@Deprecated
@Override @Override
public void setResult(ChatResult result) { public void setResult(ChatResult result) {
this.result = Preconditions.checkNotNull(result, "result"); this.result = Preconditions.checkNotNull(result, "result");