2.0 ‐ Battlefields - Rosstail/Nodewar GitHub Wiki
Battlefields are an automated system that automatically disabled and re-enable protection of territories for a period of time. It can also remove the owner of the territory upon the battlefield opening. The calendar works on a weekly basis.
# config.yml
battlefield:
alerts:
- <String> # (Xd YH Zm Ds) like "1h 30m" or "90m" for an hour and half
- <etc>
list:
<identifier>:
display: <String>
reset-team: <boolean> (false)
end-battle-on-battlefield-end: <boolean> (true)
start-days: # format day of the week : "monday", "wednesday"
- <String>
- etc...
start-times: # format HH:mm : "12:00", "9:45"
- <String>
- etc...
duration: <int> # (Xd YH Zm Ds), like "2h 15m", "1d", etc
territory-types:
- <String>
- etc...
territories:
- <String>
- etc...
etc...
alerts
: a list of countdown that will broadcast a message letting know that the X battlefield will be opened/closed in Y time.
You can create as much battlefields as you want.
-
<identifier>
: Means the name of the battlefield. Used to recover and apply the state of a battlefield. useful in case of restart while a battlefield occures. -
display
: Used in the battlefield announcements ofbattlefield.alerts
-
start-days
: List of days of the week the battlefield can start. if empty, Opens everyday and respects thestart-times
. -
start-times
: List of the hours on a day the battlefield can start. if empty, Opens at midnight and respects thestart-days
. Format:HH:mm
-
duration
: Determines when the battlefield will automatically closes upon starting. If empty, The battlefield will stop on next day at midnight. Format:<W>d <X>h <Y>m <Z>s
(Example, "2d 15h 3m" for 2 days, 15 hours and 3 minutes) -
reset-team
: Should the territories affected by the battlefield must have their team expelled upon start -
end-battle-on-battlefield-end
: If true, once the battlefield closes, all the ongoing battles in territories will be closed. the teams advantaged will win by default.territory-types
: Add all the territories that are in thgat territory type in this battlefield.territories
: A list of territories you want to be used by the current battlefield.