Add PlayerProfile.complete() API to trigger skin lookup
This commit is contained in:
parent
0d220393d1
commit
0094c1669c
2 changed files with 28 additions and 3 deletions
|
@ -7,7 +7,7 @@ Provides basic elements of a PlayerProfile to be used by future API/events
|
|||
|
||||
diff --git a/src/main/java/com/destroystokyo/paper/profile/PlayerProfile.java b/src/main/java/com/destroystokyo/paper/profile/PlayerProfile.java
|
||||
new file mode 100644
|
||||
index 00000000..a7b69cab
|
||||
index 00000000..0f44f98f
|
||||
--- /dev/null
|
||||
+++ b/src/main/java/com/destroystokyo/paper/profile/PlayerProfile.java
|
||||
@@ -0,0 +0,0 @@
|
||||
|
@ -96,6 +96,13 @@ index 00000000..a7b69cab
|
|||
+ boolean isComplete();
|
||||
+
|
||||
+ /**
|
||||
+ * If this profile is not complete, then make the API call to complete it.
|
||||
+ * This is a blocking operation and should be done asynchronously.
|
||||
+ * @return if the profile is now complete
|
||||
+ */
|
||||
+ boolean complete();
|
||||
+
|
||||
+ /**
|
||||
+ * @deprecated Will be removed in 1.13
|
||||
+ */
|
||||
+ @Deprecated
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue