ConfigFile
config.yml - levels v. 1.6
[English]
chat: activate: 'true' //if "true", the chat-prefix will be activated color: f //color of the chat-prefix prefix: '[lv &level]' //style of the chat-prefix | "&level" will be replaced by the ingamelevel list: activate: 'true' //if "true", the onlinelist-prefix will be activated color: c //color of the onlinelist-prefix prefix: '[&level]' //style of the onlinelist-prefix | "&level" will be replaced by the ingamelevel message: global: color: f //color of the message activate: 'false' //if "true" there will be a broadcast if a player reaches a new level message: '&name has reached a new Level!' //message | "&name" will be replaced by the name of the player private: color: f //color of the message activate: 'false' //if "true there will a private message if you reach a new level message: 'level up!' //message
Now you are able to use colorcodes in messages like
chat: prefix: '&f[&clv &level&f]'
note:
Playerlist allows only 16 character. You have to count characters of prefix, name and colorcodes.
If a player exceeds 16 characters it will cut the name and displays a # at the end of the name.
________________
[German]
chat: activate: 'true' //bei "true" wird das Chatprefix aktiviert color: f //Farbe des Chat-Prefix prefix: '[lv &level]' //Art des Chat-Prefix | "&level" wird durch das Ingamelevel erstetzt list: activate: 'true' //bei "true" wird das Prefix in der Onlineliste aktiviert color: c //Farbe des Onlinelisten-Prefix prefix: '[&level]' //Art des Onlinelisten-Prefix | "&level" wird durch das Ingamelevel erstetzt message: global: color: f //Farbe der Nachricht activate: 'false' //bei "true" wird ein broadcast ausgegeben, wenn ein Spieler ein neues Level erreicht message: '&name has reached a new Level!' //Nachricht | "&name" wird durch den Spielernamen ersetzt private: color: f //Farbe der Nachricht activate: 'false' //bei "true" wird eine Nachricht an den Spieler geschickt, wenn er ein neues Level erreicht message: 'level up!' //Nachricht
Nun kannst Du Colorcodes in Nachrichten benutzen wie z.B.
chat: prefix: '&f[&clv &level&f]'
Beachte:
Die Playerliste erlaubt nur 16 Zeichen. Du musst die Zeichen des Prefix, Namen und der Colorcodes zählen.
Wenn ein Spieler 16 Zeichen überschreitet, so wird sein name abgeschnitten und ein # an seinem Ende angezeigt.