Miscellaneous
Less important but interesting topics.
Less important but interesting topics.
{}. We will see some of these variables in the next section./getvariables to get the list of registered variablesHello {player}! will say hello to the player, with {player} replaced to the player’s name.{player} returns the player’s name{uuid} returns the unique id of the player{online} returns the number of online players{max_players} returns the max capacity of players in the server{world} returns the current world of the player{world_env} returns the environment of the current world of the player{x} returns the current X position of the player{y} returns the current Y position of the player{z} returns the current Z position of the player{bed_world} returns the current world of the player’s bed{bed_world_env} returns the environment of the current world of the player’s bed{bed_x} returns the current X position of the player’s bed{bed_y} returns the current Y position of the player’s bed{bed_z} returns the current Z position of the player’s bed{exp} returns the experiences (XP) of the player{level} returns the level of the player{exp_to_level} returns the required XP to go to the next level{food_level} returns the food level of the player{ip} returns the IP address of the player{biome} returns the current biome in the player’s current location{ping} returns the latency of the player’s connection{random_<i>} or {random_<i1>:<i2>} returns a random number from 0 to <i>, or from <i1> to <i2>/getvariables <menu> to get the list of registered variables for the specific menu{menu_<menu_name>.yml_<variable>test.yml and want to use {merged_args} in other menus, you can use {menu_test.yml_merged_args}%bettergui_<variable>% (<variable> is a variable without the curly brackets {}){player} in other plugins: %bettergui_player%&c, &b, etc) or a combination of color and transformation (&c&l, &b&o&l, etc).&u to get the random color for the text&#rrggbb (rr, gg and bb are the value of the red, green and blue channel of the color, from 00 to FF)&#FF0000 represents the red color. &#FF0000Hello World! will return the red Hello World!command (action) and click-requirement.left, right, middle and default?default click type, whose behaviors will be set on all available click types.actionCOMMAND:
LEFT: "tell: &cYou left-clicked"
RIGHT: "tell: &cYou right-clicked"
MIDDLE: "tell: &cYou middle-clicked"
# Default for every click types
DEFAULT:
- "tell: &cUnknown click type"
- "tell: Left, Right, Middle only"click-requirementclick-requirement:
left:
test:
cooldown: 10
right:
test:
cooldown: 20
middle:
test:
cooldown: 30
default:
test:
cooldown: 40
fail-command:
- "tell: &cCalm down"NUMBER_KEY with number keyNUMBER_KEY_<0-8>NUMBER_KEY click type with a number key (from 0 to 8, specify the 1 to 9 number key)use-modern-click-type to be enabled