From 430bf7db3f1a3a9342da6774b98521d74081a0ba Mon Sep 17 00:00:00 2001 From: Creaxx <84148888+CreaxxOG@users.noreply.github.com> Date: Thu, 4 Jul 2024 20:56:37 +0300 Subject: [PATCH] Update README.md --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 0eb4187..616970c 100644 --- a/README.md +++ b/README.md @@ -28,7 +28,7 @@ Add this to your `pom.xml` under ``: xyz.refinedev.phoenix pxAPI - 1.0 + 1.7 provided ``` @@ -56,7 +56,7 @@ Example usage of PhoenixAPI Getting a player's highest rank: ```java SharedAPI api = SharedAPI.getInstance(); -Profile profile = api.getProfileHandler().getProfile("447e2ed3-1cf5-4e73-9160-e3c5e195ed7d"); +Profile profile = api.getProfileHandler().getProfile(UUID.fromString("447e2ed3-1cf5-4e73-9160-e3c5e195ed7d")); if (profile != null) { player.sendMessage(profile.getName() + "'s highest rank is " + profile.getHighestRank().getName()); } @@ -65,7 +65,7 @@ if (profile != null) { Obtaining a information about a player in Queue: ```java QueueAPI qApi = QueueAPI.INSTANCE; -Queue queue = qApi.getPlayerQueue("447e2ed3-1cf5-4e73-9160-e3c5e195ed7d"); +Queue queue = qApi.getPlayerQueue(UUID.fromString("447e2ed3-1cf5-4e73-9160-e3c5e195ed7d")); if (queue != null) { player.sendMessage("Player is currently queued for " + queue.getName()); return;