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.
In this section of the config you can set how the auto-broadcaster will work.
Enabled
Decide if the auto-broadcaster is enabled (true) or not (false).
You can do this also using the autobroadcaster command.
Random
Whether or not the broadcasts sent will be in order as in the config or randomly.
Period
Set how many seconds have to pass between each broadcast.
Broadcasts
The ID list of the broadcasts you want to send.
ID
The ID (case-sensitive) of the broadcast, each one must be different from the others.
Message
The actual message which will be sent to the players.
Date
Optional section where you can set various date-related requirements the broadcast must meet.
week-of-year
When set, the broadcast will be sent to players only if it is the specified week of the year.
week-of-month
When set (1-5), the broadcast will be sent to players only if it is the specified week of the month.
day-of-year
When set (1-365), the broadcast will be sent to players only if it is the specified day of the year.
day-of-week
When set (1-7), the broadcast will be sent to players only if it is the specified day of the week.
year
When set, the broadcast will be sent to players only if it is the specified year.
month
When set (1-12), the broadcast will be sent to players only if it is the specified month of the year.
day
When set (1-31), the broadcast will be sent to players only if it is the specified day of the month.
hour
When set (0-23), the broadcast will be sent to players only if it is the specified hour of the day.
minute
When set (0-59), the broadcast will be sent to players only if it is the specified minute of the hour.
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