Player Abilities

For usage in C13PlayerAbilities packet

How to create

var abilities = packet.newPlayerCapabilities()

Functions

disableDamage

abilities.disableDamage = true

isFlying

abilities.isFlying = true

allowFlying

abilities.allowFlying = true

isCreativeMode

abilities.isCreativeMode = true

allowEdit

abilities.allowEdit = true

getFlySpeed

var speed = abilities.getFlySpeed()

setFlySpeed

abilities.setFlySpeed(2)

getWalkSpeed

var speed = abilities.getWalkSpeed()

setPlayerWalkSpeed

abilities.setPlayerWalkSpeed(2)

Last updated