config.yml
In the config.yml
you will find essentially two sections:
pre-made-broadcasts
;auto-broadcaster
.
Here you can set all the pre-made broadcasts you can send by using the command /wb broadcastpremade <ID>
.
ID
The ID is case-sensitive and it must be different from the others in order to not have any kind of error.
Message
Here you can write all the lines of the broadcast message; !actionbar!
and !title!
are supported.
A word or an entire sentence of a line can be replaced, for example, with a word using regular expressions (regex) when using the command in order to have a sort of custom placeholders.
To do this you just have to add another argument at the end of the /wb bcpremade
command.
This argument will be divided in two parts by using a :
, the regex and the replacement.
Considering that the :
is used to split the argument, you can't use it neither in the regex nor in the replacement; if you need to use it you can use the escape key \:
instead if you need to put a space between two words use \\
.
Then the command will be: /wb broadcastpremade <ID> [regex:replacement]
.
If you need to do more than one replacement just add another argument following always the same format.
Permissions
Here you can write a list of permissions where a player must have at least one in order to receive the broadcast.
Worlds
Specify a list of worlds' names in which players can receive the broadcast.
Players
Specify which players can receive the broadcast.
Last updated