Only complete incomplete profiles - Resolves #1053

This commit is contained in:
Aikar
2018-03-21 19:12:02 -04:00
parent ace8e99e04
commit 6b6373a077
3 changed files with 7 additions and 5 deletions

View File

@@ -6,7 +6,7 @@ Subject: [PATCH] Basic PlayerProfile API
diff --git a/src/main/java/com/destroystokyo/paper/profile/CraftPlayerProfile.java b/src/main/java/com/destroystokyo/paper/profile/CraftPlayerProfile.java
new file mode 100644
index 000000000..2cfd65bc1
index 000000000..1d669e3e2
--- /dev/null
+++ b/src/main/java/com/destroystokyo/paper/profile/CraftPlayerProfile.java
@@ -0,0 +0,0 @@
@@ -121,7 +121,9 @@ index 000000000..2cfd65bc1
+ }
+
+ public boolean complete() {
+ profile = MinecraftServer.getServer().getSessionService().fillProfileProperties(profile, true);
+ if (!profile.isComplete()) {
+ profile = MinecraftServer.getServer().getSessionService().fillProfileProperties(profile, true);
+ }
+ return profile.isComplete();
+ }
+