From 339ccbac9cf159528e12c2ebf615c6ad07357687 Mon Sep 17 00:00:00 2001 From: Jacob Gillespie Date: Sun, 13 Dec 2015 22:51:25 -0600 Subject: [PATCH] Use player.name for username --- src/main/kotlin/gg/obsidian/discoursegroupsync/UserManger.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/kotlin/gg/obsidian/discoursegroupsync/UserManger.kt b/src/main/kotlin/gg/obsidian/discoursegroupsync/UserManger.kt index 362a26e..e9ad635 100644 --- a/src/main/kotlin/gg/obsidian/discoursegroupsync/UserManger.kt +++ b/src/main/kotlin/gg/obsidian/discoursegroupsync/UserManger.kt @@ -18,7 +18,7 @@ class UserManager(val plugin: DiscourseGroupSync) { } fun getDiscourseUser(player: Player): User? { - val username = UUIDHelper.uuidToUsername(player.uniqueId) + val username = player.name // UUIDHelper.uuidToUsername(player.uniqueId) if (username == "") return null val url = plugin.config.DISCOURSE_URL + "/users/" + username + ".json"