mirror of
https://github.com/PaperMC/Velocity.git
synced 2025-02-23 15:49:19 +08:00
Add deprecation notice (#1442)
This commit is contained in:
parent
99aaf3ce4e
commit
9a93bbe990
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user