Global Values

Global Values

  • *playername
    • name of the player that used the command
  • *money
    • amount of money the player has
  • *x
    • x position of the player
  • *y
    • y position of the player
  • *z
    • z position of the player
  • *level
    • level of the player
  • *exp
    • exp of the player
  • *playerchatname
    • chat name of the player
  • *playerhandamount
    • amount of items that the player holds in hand
  • *playerhand
    • name of the item that the player holds in hand
  • *world
    • world the player is in
  • *args[N]
    • arguments the player used with the command

Example uses of values:

  1. broadcast *playername is in *world and holds *playerhand!
  2. console give *playername *args[0] 64
  3. sendmessage hey &c*playername&f how are you?

Comments

Posts Quoted:
Reply
Clear All Quotes