diff options
| author | mat <git@matdoes.dev> | 2025-04-04 06:23:19 -1400 |
|---|---|---|
| committer | mat <git@matdoes.dev> | 2025-04-04 06:23:19 -1400 |
| commit | 1fd02925903cfe59e85977b5c27e49457d99b142 (patch) | |
| tree | 3289bd31d782512cbc011ac3087ab6c12d539f6b /azalea-client/src/plugins | |
| parent | 09d515c8cdd1bae32a5bc387b81360bad79eecf5 (diff) | |
| download | azalea-drasl-1fd02925903cfe59e85977b5c27e49457d99b142.tar.xz | |
rename ChatPacket::username and uuid to sender and sender_uuid
Diffstat (limited to 'azalea-client/src/plugins')
| -rw-r--r-- | azalea-client/src/plugins/chat/mod.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/azalea-client/src/plugins/chat/mod.rs b/azalea-client/src/plugins/chat/mod.rs index aa5606eb..1e083c94 100644 --- a/azalea-client/src/plugins/chat/mod.rs +++ b/azalea-client/src/plugins/chat/mod.rs @@ -103,14 +103,14 @@ impl ChatPacket { /// Get the username of the sender of the message. If it's not a /// player-sent chat message or the sender couldn't be determined, this /// will be None. - pub fn username(&self) -> Option<String> { + pub fn sender(&self) -> Option<String> { self.split_sender_and_content().0 } /// Get the UUID of the sender of the message. If it's not a /// player-sent chat message, this will be None (this is sometimes the case /// when a server uses a plugin to modify chat messages). - pub fn uuid(&self) -> Option<Uuid> { + pub fn sender_uuid(&self) -> Option<Uuid> { match self { ChatPacket::System(_) => None, ChatPacket::Player(m) => Some(m.sender), |
