Only complete incomplete profiles - Resolves #1053

This commit is contained in:
Aikar
2018-03-21 19:12:02 -04:00
parent 9aa5d9ec9b
commit 723109fa84
3 changed files with 12 additions and 10 deletions

View File

@@ -1,4 +1,4 @@
From d59f6eb0f4ce7dbd4e2ad3c366c5950e1bb6d9ca Mon Sep 17 00:00:00 2001
From c27298c0ed821b2e7556e75100ed55c5830bcead Mon Sep 17 00:00:00 2001
From: Aikar <aikar@aikar.co>
Date: Mon, 15 Jan 2018 22:11:48 -0500
Subject: [PATCH] Basic PlayerProfile API
@@ -6,10 +6,10 @@ 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 +1,197 @@
@@ -0,0 +1,199 @@
+package com.destroystokyo.paper.profile;
+
+import com.mojang.authlib.GameProfile;
@@ -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();
+ }
+