playerQuery

fun playerQuery(q: String, max: Int = 10, page: Int = 0, staffOnly: Boolean = false, create: Boolean = false, sortLabel: String = "id_field", sortDirection: Int? = null, activityMin: Int = 14, basicStats: Boolean = true, moderationData: Boolean = false): Player(source)

Endpoint for querying player stats

Endpoint: /Api/Player/Query

Return

a 'Player' object

Parameters

q

the query being a userId most of the time

max

maximum number of results to return

page

define the page

staffOnly

only return staff users

create

create player

sortLabel

label to sort to

sortDirection

direction of sort

activityMin

minimum activity to query from. If set to 10, it queries data from the last 10 days

basicStats

should base stats be returned?

moderationData

should moderation data be returned?

Throws

inherited from CedmodException