mirror of
https://github.com/darksaid98/Carbon.git
synced 2026-12-01 14:38:48 +00:00
temporary display names part 1
This commit is contained in:
1 parent
9b876e2e00
commit
73c1f53e1b
7 files changed
+100
-84
No files matched your search
@@ -57,10 +57,11 @@ public interface CarbonPlayer extends Audience, Identified {
|
||||
* If the player logs off or is otherwise disconnected from the server,
|
||||
* their temporary display name will be reset.
|
||||
*
|
||||
* @param displayName the new display name
|
||||
* @param temporaryDisplayName the new display name
|
||||
* @param expirationEpoch when the display name expires, in milliseconds from Unix epoch, or -1 for no expiration
|
||||
* @since 2.0.0
|
||||
*/
|
||||
void temporaryDisplayName(final @Nullable Component displayName);
|
||||
void temporaryDisplayName(final @Nullable Component temporaryDisplayName, final long expirationEpoch);
|
||||
|
||||
/**
|
||||
* The player's UUID, often used for identification purposes.
|
||||
|
||||
Reference in new issue
Block a user