-
Notifications
You must be signed in to change notification settings - Fork 5
Title Command Parameter
UltraBar 2.2 introduces a brand new /title command. This new title command has what are called title parameters. The title command uses the same system as the bar command.
They look like this: player:@a
. There are a bunch of parameters so look around here and see what they all do.
Parameters are separated into keys and values. They look like this: key:value
So for example, player:@a
player
is the key
and @a
is the value.
The semicolon (:) must be in between the key and value always. There can not be a space between the semicolon for both the key and value!
These parameters are required in order for the command to run.
player:
Parameter Key:
title
Parameter Value:any string. (For example: "Hello World")
Example Use:/utitle title:"&cI am the message"
The message parameter is used to add a message to the title. Color codes (including Hex Color Codes {#3B32EA}
can be used.
You can also use PlaceHolderAPI placeholders.
Parameter Key:
subtitle
Parameter Value:any string. (For example: "Hello World")
Example Use:/utitle subtitle:"{#3B32EA}I am the message"
The message parameter is used to add a sub message to the title. Color codes (including Hex Color Codes {#3B32EA}
can be used.
You can also use PlaceHolderAPI placeholders.
Parameter Key:
p, player, players
Parameter Value:playername
, a collection of players:playername1,playername2
, orall, @a, *
Example Use:/utitle player:Ryandw11
Example Use 2:/utitle player:Ryandw11,KingTux
Example Use 3:/utitle player:@a
This parameter is required on all titles!
Who to send the title to. It can be a single player, a list of players, or everyone on the server.
The following permission is needed to send a title to everyone: ultrabar.title.player.all
The following permission is needed to send a title to a list of players: ultrabar.title.player.list
Parameter Key:
time
Parameter Value:any integer greater than 0
Example Use:/utitle time:30
The time parameter is used to say how long the title will stay on screen (time in miliseconds.)
Parameter Key:
fadein
Parameter Value:any integer greater than 0
Example Use:/utitle fadein:10
The time parameter is used to say how long it will take the title to appear on screen during the fade affect (time in miliseconds.)
Parameter Key:
fadeout
Parameter Value:any integer greater than 0
Example Use:/utitle fadeout:10
The time parameter is used to say how long it will take the title to disappear on screen during the fade affect (time in miliseconds.)