temporary display names part 2

This commit is contained in:
Draycia committed 2021-09-26 22:17:58 -07:00
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.
*