Territory - Rosstail/Nodewar GitHub Wiki
To enable the conquest system in a world, you just have to add a folder with the name of your world in plugins/Nodewar/worlds/
- Example for the world
Earth
:plugins/Nodewar/worlds/Earth/
Inside, you can create every .yml files you want to organize your territories.
You can put unlimited amount of file on the world folder. You can put unlimited amount of territories on a single file.
#plugins/Nodewar.worlds/worldname/filename.yml
<territoryName>:
options:
display: <String>
region: <String>
vulnerable: <boolean>
is-node: <boolean>
must-connect-to-node: <boolean>
objective: <Objective>
subterritories:
- <String>
- ...
targets:
- <String>
- ...
- : The identifier of the territory. Must be unique per world and contains simple characters, please avoid quotes or spaces.
- .options.display : The displayed name of territory in commands, messages, GUI and bossbar. Compatible with Minecraft text format and hexadecimals.
- .options.region: : set the worldguard region name you want as a territory. Should be unique per world.
- .options.max-resistance : The score that a territory can take before cancelling an assault or being captured.
- .options.vulnerable : Set the territory as vulnerable or not by default. Useful to create an empire spawn and losing everything.
- .options.is-node: False by default. If set to true, an empire without territory can capture this territory if this node does not need another node linked to this territory to be captured.
- .options.must-connect-to-node: If set to true, The attacking empire must have at least one node linked to this territory to engage. If unset, it is read by default as FALSE if territory is a node. If not a node, the default value will be TRUE.
- .targets: a list of territories identifier this territory can attack. Use a wildcard (*) at the end of a name to add every territories staring with this name.
- .objective: The objective to defend or attack, optional. Check this page: Objectives
- .subterritories: The subterritories of this territory. If this terrritory is modified, they will be also affected. Use a wildcard (*) at the end of a name to add every territories staring with this name.
Some datas will be writed on the territory files, such as health, territory owner and vulnerability inside <territoryName>.data
. Be careful upon edition if the server changes territory or points data.