Skip to content

Commit

Permalink
Use player.name for username
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobwgillespie committed Dec 14, 2015
1 parent 81cb904 commit 339ccba
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 339ccba

Please sign in to comment.