@@ -289,16 +289,20 @@ index 0000000000000000000000000000000000000000..7b3b6ef533d32169fbeca389bd61cfc6
289
289
+ }
290
290
+ }
291
291
diff --git a/src/main/java/org/bukkit/Bukkit.java b/src/main/java/org/bukkit/Bukkit.java
292
- index b175f07b99a07ba50c4721c38f9e6330f02942f8..aae3eec8d28a0047bc590ecc55d87d11ee6d08f0 100644
292
+ index b175f07b99a07ba50c4721c38f9e6330f02942f8..88720b2fa92f387714c11a11cba8c9bf0a25e797 100644
293
293
--- a/src/main/java/org/bukkit/Bukkit.java
294
294
+++ b/src/main/java/org/bukkit/Bukkit.java
295
- @@ -2080,6 +2080,40 @@ public final class Bukkit {
295
+ @@ -2080,6 +2080,50 @@ public final class Bukkit {
296
296
public static boolean suggestPlayerNamesWhenNullTabCompletions() {
297
297
return server.suggestPlayerNamesWhenNullTabCompletions();
298
298
}
299
299
+
300
300
+ /**
301
- + * Creates a PlayerProfile for the specified uuid, with name as null
301
+ + * Creates a PlayerProfile for the specified uuid, with name as null.
302
+ + *
303
+ + * If a player with the passed uuid exists on the server at the time of creation, the returned player profile will
304
+ + * be populated with the properties of said player.
305
+ + *
302
306
+ * @param uuid UUID to create profile for
303
307
+ * @return A PlayerProfile object
304
308
+ */
@@ -308,7 +312,11 @@ index b175f07b99a07ba50c4721c38f9e6330f02942f8..aae3eec8d28a0047bc590ecc55d87d11
308
312
+ }
309
313
+
310
314
+ /**
311
- + * Creates a PlayerProfile for the specified name, with UUID as null
315
+ + * Creates a PlayerProfile for the specified name, with UUID as null.
316
+ + *
317
+ + * If a player with the passed name exists on the server at the time of creation, the returned player profile will
318
+ + * be populated with the properties of said player.
319
+ + *
312
320
+ * @param name Name to create profile for
313
321
+ * @return A PlayerProfile object
314
322
+ */
@@ -321,6 +329,8 @@ index b175f07b99a07ba50c4721c38f9e6330f02942f8..aae3eec8d28a0047bc590ecc55d87d11
321
329
+ * Creates a PlayerProfile for the specified name/uuid
322
330
+ *
323
331
+ * Both UUID and Name can not be null at same time. One must be supplied.
332
+ + * If a player with the passed uuid or name exists on the server at the time of creation, the returned player
333
+ + * profile will be populated with the properties of said player.
324
334
+ *
325
335
+ * @param uuid UUID to create profile for
326
336
+ * @param name Name to create profile for
@@ -334,24 +344,32 @@ index b175f07b99a07ba50c4721c38f9e6330f02942f8..aae3eec8d28a0047bc590ecc55d87d11
334
344
335
345
@NotNull
336
346
diff --git a/src/main/java/org/bukkit/Server.java b/src/main/java/org/bukkit/Server.java
337
- index 24e68d5cb4f713984b25ab19330cb77f1eddb5cf..51c96a0b6645cf31f4ca051f6a8c75b5f188484c 100644
347
+ index 24e68d5cb4f713984b25ab19330cb77f1eddb5cf..29886928ab33edf9965b93e89482a84bd82e4fd2 100644
338
348
--- a/src/main/java/org/bukkit/Server.java
339
349
+++ b/src/main/java/org/bukkit/Server.java
340
- @@ -1825,5 +1825,33 @@ public interface Server extends PluginMessageRecipient, net.kyori.adventure.audi
350
+ @@ -1825,5 +1825,43 @@ public interface Server extends PluginMessageRecipient, net.kyori.adventure.audi
341
351
* @return true if player names should be suggested
342
352
*/
343
353
boolean suggestPlayerNamesWhenNullTabCompletions();
344
354
+
345
355
+ /**
346
- + * Creates a PlayerProfile for the specified uuid, with name as null
356
+ + * Creates a PlayerProfile for the specified uuid, with name as null.
357
+ + *
358
+ + * If a player with the passed uuid exists on the server at the time of creation, the returned player profile will
359
+ + * be populated with the properties of said player.
360
+ + *
347
361
+ * @param uuid UUID to create profile for
348
362
+ * @return A PlayerProfile object
349
363
+ */
350
364
+ @NotNull
351
365
+ com.destroystokyo.paper.profile.PlayerProfile createProfile(@NotNull UUID uuid);
352
366
+
353
367
+ /**
354
- + * Creates a PlayerProfile for the specified name, with UUID as null
368
+ + * Creates a PlayerProfile for the specified name, with UUID as null.
369
+ + *
370
+ + * If a player with the passed name exists on the server at the time of creation, the returned player profile will
371
+ + * be populated with the properties of said player.
372
+ + *
355
373
+ * @param name Name to create profile for
356
374
+ * @return A PlayerProfile object
357
375
+ */
@@ -362,6 +380,8 @@ index 24e68d5cb4f713984b25ab19330cb77f1eddb5cf..51c96a0b6645cf31f4ca051f6a8c75b5
362
380
+ * Creates a PlayerProfile for the specified name/uuid
363
381
+ *
364
382
+ * Both UUID and Name can not be null at same time. One must be supplied.
383
+ + * If a player with the passed uuid or name exists on the server at the time of creation, the returned player
384
+ + * profile will be populated with the properties of said player.
365
385
+ *
366
386
+ * @param uuid UUID to create profile for
367
387
+ * @param name Name to create profile for
0 commit comments