Add deprecation notice (#1442)

This commit is contained in:
Elikill58 2024-10-21 02:05:29 +02:00 committed by GitHub
parent 99aaf3ce4e
commit 9a93bbe990
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -51,6 +51,13 @@ public final class PlayerChatEvent implements ResultedEvent<PlayerChatEvent.Chat
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
public void setResult(ChatResult result) {
this.result = Preconditions.checkNotNull(result, "result");