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

View File

@@ -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");