Properties of Player Object - dapucita/haxbotron GitHub Wiki

Properties of Player Object

Player class implements PlayerObject. See also source code.

{
    id: number
    name: string
    auth: string
    conn: string
    admin: boolean
    team: number
    position: { x: number y: number }
    matchRecord: PlayerMatchRecord
    stats: PlayerStats
    permissions: PlayerPermissions
    afktrace: PlayerAfkTrace
    entrytime: PlayerEntryTime
    voteTarget: number
    voteGet: number
}

PlayerMatchRecord Type

    goals: number
    assists: number
    ogs: number
    losePoints: number
    balltouch: number
    passed: number
    factorK: number

PlayerStats

{
    rating: number
    totals: number
    disconns: number
    wins: number
    goals: number
    assists: number
    ogs: number
    losePoints: number
    balltouch: number
    passed: number
}

PlayerPermissions

{
    mute: boolean
    muteExpire: number
    afkmode: boolean
    afkreason: string
    afkdate: number
    malActCount: number
    superadmin: boolean
}

PlayerAfkTrace

{
    exemption: boolean
    count: number
}

PlayerEntryTime

{
    rejoinCount: number
    joinDate: number
    leftDate: number
    matchEntryTime: number
}