Skip to content

Player State

Player State

The Player State module bundles the everyday self-and-target verbs: healing, flight, game mode, speed, personal time/weather, XP, and a stack of read-only info commands. Every command is Brigadier-registered and can be renamed, re-aliased, or disabled in commands/commands.conf; permission nodes stay keyed to the command id regardless of the name you give it.

Targeting another player

Most verbs accept an optional [player]. Running one on yourself needs only the command's own node โ€” but the moment you pass a target, you also need uxmessentials.playerstate.others. Without it, the [player] argument is refused.


Self buffs & body state

Command Aliases Permission
/god [player] godmode uxmessentials.god.use
/fly [player] โ€” uxmessentials.fly.use
/heal [player] โ€” uxmessentials.heal.use
/feed [player] eat uxmessentials.feed.use
/foodlevel <amount> [player] โ€” uxmessentials.foodlevel.use
/health <amount> [player] โ€” uxmessentials.health.use
/ext [player] extinguish uxmessentials.extinguish.use
/nightvision nv uxmessentials.nightvision.use
/glow โ€” uxmessentials.glow.use
/air <seconds> [player] โ€” uxmessentials.air.use
/burn <seconds> [player] โ€” uxmessentials.burn.use
/ice [player] [seconds] โ€” uxmessentials.ice.use
/suicide โ€” uxmessentials.suicide.use
/rest [player] โ€” uxmessentials.rest.use

Game mode & movement

Command Aliases Permission
/gamemode <mode> [player] gm uxmessentials.gamemode.use
/gmc ยท /gms ยท /gma ยท /gmsp [player] โ€” uxmessentials.gamemode.use
/speed <value> [player] โ€” uxmessentials.speed.use
/walkspeed <value> ยท /flyspeed <value> โ€” uxmessentials.speed.use

/gmc, /gms, /gma, /gmsp are shorthands for creative, survival, adventure, and spectator โ€” the same node as /gamemode.


Inventory

Command Aliases Permission
/clearinventory [player] ci, clear uxmessentials.clearinventory.use
/clearinventoryconfirmtoggle citoggle uxmessentials.clearinventory.confirmtoggle
/invsee [player] โ€” uxmessentials.invsee.use
/endersee [player] โ€” uxmessentials.endersee.use

Editing what you open

/invsee opens the target's inventory read-only by default. To actually move items in and out, the viewer additionally needs uxmessentials.invsee.modify. /citoggle flips whether your own /clearinventory asks for confirmation first.


Personal time & weather

These change what you see client-side โ€” they never touch the world for other players.

Command Permission
/ptime <value\|reset> uxmessentials.ptime.use
/pweather <clear\|rain\|reset> uxmessentials.pweather.use

Experience

Command Aliases Permission
/exp get\|set\|give\|take\|reset [amount] [levels\|points] [player] xp uxmessentials.exp.use

Pick levels or points to choose the unit; omit it to use the default. As with every verb here, targeting [player] requires uxmessentials.playerstate.others.


Information & location

Read-only lookups. Each has its own node so you can hand them out individually.

Command Aliases Permission
/near [radius] nearby uxmessentials.near.use
/getpos [player] coords, whereami uxmessentials.getpos.use
/depth โ€” uxmessentials.depth.use
/biome โ€” uxmessentials.biome.use
/seed โ€” uxmessentials.seed.use
/compass โ€” uxmessentials.compass.use
/world โ€” uxmessentials.world.use
/dimension dim uxmessentials.dimension.use
/ping [player] โ€” uxmessentials.ping.use
/playtime [player] โ€” uxmessentials.playtime.use
/playtime reset\|resetall [player] โ€” uxmessentials.playtime.reset

/world vs /worlds

/world here just reports the world you are standing in. The multi-world management command is the plural /worlds, handled by the separate Worlds module.


Examples

/heal                    # top up your own health and hunger
/heal Steve              # heal Steve (needs playerstate.others)
/fly                     # toggle flight
/gmc                     # switch yourself to creative
/gamemode survival Steve # put Steve back in survival
/speed 4                 # set movement speed (fly speed while flying)
/ptime night             # personal night sky, just for you
/exp give 30 levels      # grant yourself 30 XP levels
/near 50                 # list players within 50 blocks
/invsee Steve            # peek at Steve's inventory

Next Steps