mirror of
https://github.com/darksaid98/Carbon.git
synced 2026-12-02 22:16:22 +00:00
temporary display names part 2
This commit is contained in:
1 parent
73c1f53e1b
commit
3736377fd7
4 files changed
+71
-5
No files matched your search
@@ -63,6 +63,21 @@ public interface CarbonPlayer extends Audience, Identified {
|
||||
*/
|
||||
void temporaryDisplayName(final @Nullable Component temporaryDisplayName, final long expirationEpoch);
|
||||
|
||||
/**
|
||||
* The player's temporary display name.
|
||||
*
|
||||
* @return the player's temporary display name.
|
||||
*/
|
||||
// TODO: improve javadocs here
|
||||
@Nullable Component temporaryDisplayName();
|
||||
|
||||
/**
|
||||
* The expiration date in milliseconds for the temporary display name.
|
||||
*
|
||||
* @return the temporary display name's expiration in MS since Unix Epoch
|
||||
*/
|
||||
long temporaryDisplayNameExpiration();
|
||||
|
||||
/**
|
||||
* The player's UUID, often used for identification purposes.
|
||||
*
|
||||
|
||||
Reference in new issue
Block a user