Player.setPlayerProfile API

This can be useful for changing name or skins after a player has logged in.
This commit is contained in:
Aikar
2018-03-18 12:28:55 -04:00
parent 2eaa723e96
commit 4447307899
5 changed files with 36 additions and 1 deletions

View File

@@ -16,7 +16,9 @@ import org.jetbrains.annotations.Nullable;
* <p>
* New profiles can be created via
* {@link Server#createPlayerProfile(UUID, String)}.
* @deprecated see {@link com.destroystokyo.paper.profile.PlayerProfile}
*/
@Deprecated(since = "1.18.1") // Paper
public interface PlayerProfile extends Cloneable, ConfigurationSerializable {
/**
@@ -25,6 +27,7 @@ public interface PlayerProfile extends Cloneable, ConfigurationSerializable {
* @return the player's unique id, or <code>null</code> if not available
*/
@Nullable
@Deprecated(since = "1.18.1") // Paper
UUID getUniqueId();
/**