Configuration
Format
All configuration files of KingdomCraft, and many other plugins use the YAML format. You can recognise this on the .yml extension of a file such as config.yml.
To make sure a computer can read and understand these files you need to follow some rules.
If you put text you need to put it between single quotes like this:
'Dit is een tekst'You can never use tabs, always use spaces!
Everything that starts with
#are comments, the computer will ignore this.
Example
settings:
respawn-at-kingdom: true
messages:
# This message is broadcasted when someone joins the server
join: '&e{kingdom_prefix}{rank_prefix}{player} &ejoined the server.'You see the usage of true and false this is computer language for yes and no respectively.
Config options
Language
language: 'nl'Change the language, this must be the filename (without .yml) of the translation file in the language directory.
Command aliases
command-aliases: [k, kd, kdc, kingdom]Change the command aliases, do you want /team instead of /kingdom? You can change that here!
Remap commands
remap-commands:
'ranks list': 'ranklist'This remaps subcommands to something else, in the above example /k ranks list is remapped to /k ranklist. If you want to change the root command (the /k part) you can use command aliases.
Nokingdom
nokingdom:
display: '&eHobo'
prefix: '&7[&eHobo&7]'
suffix: ''With this you can change the display, chat prefix and chat suffix for players without a kingdom. This affects the placeholders display, kingdom_prefix and kingdom_suffix.
With the following permission, the placeholders do not get replaced and will appear blank: kingdom.placeholders.empty-no-kingdom
Friendly-fire
friendly-fire: falseEnable (true) or disable (false) that members of the same kingdom can damage eachother.
Friendly-fire relationships
friendly-fire-relationships:
- ally
- truceIf you have this releationship with another kingdom the above rule friendly-fire also applies.
Respawning
respawn-at-kingdom: trueTeleport to your kingdom spawn when you die.
Teleport delay
teleport-delay: 5Place a delay on teleporting commands such as /k spawn to prevent teleporting during a fight.
Events
events:
kingdom-join:
- CONSOLE k spawn {player}
- CONSOLE clearninv {player}
kingdom-leave:
- CONSOLE k spawn {player}
- CONSOLE clearninv {player}
kingdom-create:
- lp creategroup {kingdom_name}
kingdom-delete:
- lp deletegroup {kingdom_name}Here you can put commands which are automatically executed on a specific event.
With CONSOLE this command is executed in the console. If you don't use this, the command is executed as the player, which means the player needs the correct permissions.
Messages
messages:
join: '&e{kingdom_prefix}{rank_prefix}{player} &ejoined the server.'
leave: '&e{kingdom_prefix}{rank_prefix}{player} &equit the server.'
death: '&e{kingdom_prefix}{rank_prefix}{player} &edied.'
kill: '&e{kingdom_prefix}{rank_prefix}{player} &ewas killed by
{killer_kingdom_prefix}{killer_rank_prefix}{killer_player}&e.'
kill-weapon: '&e{kingdom_prefix}{rank_prefix}{player} &ewas killed by
{killer_kingdom_prefix}{killer_rank_prefix}{killer_player} &ewith weapon {weapon}&e.'Change the messages of events such as joining or quitting the server, dying or killing someone.
To only show the join and quit messages for players of your own kingdom, set this option to true.
join-and-leave-kingdom-only: falseDate format
timezone: 'Europe/Brussels'
date-format: 'yyyy-MM-dd'
time-format: 'HH:mm'The timezone, date format and time format to be used for displaying dates and times.
Update display names
update-display-names: trueChange the display name of players (like essentials nicknames) with the kingdom prefix & suffix. Use this together with Dynmap for colored names on the map! This does not work well together with other plugins such as essentials because of their nickname system.