Variables

Variables

Variables can represent static text like the server IP address or dynamic text (being translated based on runtime parameters) like a player's name. Those variables can be written with braces ( {SERVER_NAME} for example) into the text fields of config.yml.

__Static____

LINEBREAK
Will be translated to \n. Following text is displayed in the next row.

SERVER_NAME
The name entered in server properties.
SERVER_IP
The IP players use to connect.
SERVER_VERSION
The current version of Bukkit running on the server.
SERVER_SLOTS
The maximum amount of players who can play at once. (ignoring slots.count)
SERVER_ID
Is.. uh.. dunno.

SMARTPING_NAME
The name of the SmartPing plugin. Simply returns SmartPing.
SMARTPING_VERSION
Version of SmartPing installation (like 1.2.3).

COLOR_AQUA
§B
COLOR_BLACK
§0
COLOR_BLUE
§9
COLOR_DARK_AQUA
§3
COLOR_DARK_BLUE
§1
COLOR_DARK_GRAY
§8
COLOR_DARK_GREEN
§2
COLOR_DARK_PURPLE
§5
COLOR_DARK_RED
§4
COLOR_GOLD
§6
COLOR_GRAY
§7
COLOR_GREEN
§A
COLOR_LIGHT_PURPLE
§D
COLOR_RED
§C
COLOR_WHITE
§F
COLOR_YELLOW
§E

FORMAT_BOLD
§L
FORMAT_MAGIC
§K
FORMAT_UNDERLINE
§N
FORMAT_STRIKETHROUGH
§M
FORMAT_ITALIC
§O
FORMAT_RESET
§R

Don't mind if those icons aren't correctly displayed here. They all look really fancy in Minecraft.

ICON_HEART

ICON_SMILEY

ICON_COPYRIGHT (or coins)
©
ICON_MAIL

ICON_CAKE

ICON_STAR

ICON_STAR2

ICON_STAR3

ICON_STAR4

ICON_STAR5

ICON_STAR6

ICON_FLOWERSTAR (star with hole)

ICON_SHAMROCK

ICON_SUN

ICON_DRAGONBALL (white star in black circle)

ICON_FLOWER

ICON_FLOWER2

ICON_FLOWER3

ICON_MUG

ICON_HOTSPRINGS (or soup)

ICON_WARNING

ICON_SWORDS

ICON_EQUIP (crossed hammer and pickaxe)

ICON_SKULL

ICON_CHECK

ICON_SCISSORS

ICON_PENCIL

ICON_MUSIC

ICON_MUSIC2

ICON_MUSIC3

ICON_MUSIC4

ICON_FLAG

ICON_FLAG2

ICON_WATCH

ICON_SNOW

ICON_SAND

ICON_SQUARE (it's a real 1:1 square ingame)

ICON_RECT

__Dynamic____

RANDOM_COLOR
Returns a random color tag. (the color list can be changed at motd.random_colors)
RANDOM_MUSIC
Returns a random music icon. (ICON_MUSIC - ICON_MUSIC4)
TIME
The current time at the server's timezone. (the formatting can be changed at motd.time_format)
SERVER_PLAYERS
The amount of players logged in.
TIMER
Formats difference from now to specified date.

__Player related____

NAME
The real username of player.
ESSENTIALS_MAILS
The amount of unread mails. (The formatting can be changed at motd.use_mail_icon)
ESSENTIALS_MONEY
The Essentials currency formatted with Essentials itself.
ESSENTIALS_HOMES
The amount of Essentials homes.
ESSENTIALS_NICK
The /nick nickname of the viewing player.
ESSENTIALS_LEVEL
The player level for enchantments and stuff. (currently unsupported)

Custom Variables

See http://dev.bukkit.org/bukkit-plugins/smartping/pages/api/.


Comments

Posts Quoted:
Reply
Clear All Quotes