# The prefix that global messages have for the player prefix: "!"
# The prefix for the messages that are send to the player. msg_prefix: "&8[&2Prefix&8]&r "
# The message when nobody on the server is online, # but some people are online on a # different server in the bungee network. msg_nobody_online_server: -
"Currently nobody on this server is online! To message the others, write !<message>."
# The message when nobody is online on # the whole bungee server network. msg_nobody_online_bungee: -
"Currently nobody on this server is online!"
# The different commands where messages are send to the player # commands.<commandname> is the command name itself # The permission is the permission that a player on the bungee must # have so that the message itself does not get send. # The aliases are the different names for the command, except # the main name. # # So when a player sends a the command <test> and nobody on the bungee # has the permission <mypermission.permission> the message will be # send, but when there is a player on the bungee with this permission # the message won't be send. commands:
test:
permission: "mypermission.permission" aliases: -
"testhere" message: -
"&bCurrently nobody is online that has the" -
" &3mypermission.permission&r permission"
The most important thing of the plugin is the
prefix as it checks if the prefix is in before a message and when it is before that message it assumes that this message is being send in the global chat and when it is not in front of the message it assumes this message is send in the local chat.
When no prefix is set the plugin will disregard it.
The config has multiple sections that define the different things that are send to the player:
msg_nobody_online_server This is when nobody is on the server, but on the whole network there are still more people than the player that has send the message. Then the message will be send to the player (and just the player).
msg_nobody_online_bungee This is when nobody, except the sender, is on the whole network. Then the message will be send to the player (and just the player).
Then there are the
commands, which is a little bit more complicated:
At first there is the name of the command: For example it could be test or mycommand:
Then there is the permission that is the permission that is being checked if a player on the network has that permission. If no player on the whole network has that permission, the message will be send.
The aliases are the different names for the command. So when you have the command mycommand you could have an alias called mycmd when it does the same thing.
The message is the message that is being send to the player if they type in a command and nobody with the permission is online.
Example:
Code (YAML):
commands:
mycommand:
permission: "mycommand.mypermission" aliases: -
"mycmd" message: -
"This is a message! Yay. (&4With &6Colorcodes!)" -
"And multiple lines!"
The
msg_prefix is the prefix that is before the messages that are being send to the player.
How to write in hexadecimal For hexadecimal you can use this notation:
&#<color code>; This will work every time with the messages:
Code (YAML):
msg_nobody_online_bungee: -
"&#da6000;A simple&r test &#B7088A;message."
But the semicolon is not needed every time. It is always needed if after the hexadecimal code is a character that is
0-9 or
a-f (This is case insensitive and so these letters can be uppercase or lowercase).
So when there is (for example) a whitespace after the color code you can just remove the semicolon.
In this example the letter
m is not in the characterset of
0-9 or
a-f and so there is no need for the semicolon.
Code (YAML):
msg_nobody_online_bungee: -
"&#da6000;A simple&r test &#B7088Amessage."
But it should be used every time as it increases the risk of error when the messages are edited and it is not thought about.