Locale files - Rosstail/Nodewar GitHub Wiki
#config.yml
general:
lang: <String>
Edit general.lang
with the language you want: if your file in lang/ is named en_EN.yml
, put en_EN
inside.
You can add any language file inside the lang folder if Nodewar does not generate it by default. (You can even suggest me your lang file on Isues, pull request or discord)
Heres the structure of a lang file:
by-player-only: <String>
disconnected-player: <String>
too-few-arguments: <String>
wrong-value: <String>
empire:
create: <String>
player-join: <String>
player-set: <String>
player-leave: <String>
player-remove: <String>
player-already-joined: <String>
player-without-empire: <String>
target-without-empire: <String>
world-set-empire: <String>
world-neutralize: <String>
world-vulnerable: <String>
world-invulnerable: <String>
territory-set-empire: <String>
territory-neutralize: <String>
territory-vulnerable: <String>
territory-invulnerable: <String>
territory:
bossbar:
neutral: <String>
under-capture: <String>
struggle: <String>
on-defense: <String>
titles:
neutralized:
title: <String>
subtitle: <String>
conquered:
title: <String>
subtitle: <String>
defended:
title: <String>
subtitle: <String>
location-does-not-exist: <String>
world-not-used: <String>
You can use both types of colours in the plugin, Minecraft color codes and Hex colours:
- Minecraft Color codes Put the code before (or inside) the text you want
- Hex colors: put
#RRGGBB
before or inside the text that you want. Help for HEX colors
Nodewar provides some custom placeholders that you can use both in Nodewar itself or on any other plugin if you have PlaceHolderAPI on the server.
-
%nodewar_player_empire_display%
: Shows the empire name of the player
-
%player%
: Shows the player name. If you place it before a command line, the command will launch the command. You may use it with a message placeholder that you can read below -
%nodewar_empire_name%
: Shows the empire identifier -
%nodewar_empire_display%
: Shows the empire display name -
%nodewar_empire_friendly_fire%
: Shows if the players of the empire can hit eachother -
%nodewar_world_name%
: Shows world name -
%nodewar_territory_name%
: Shows territory identifier -
%nodewar_territory_world%
: Show world of the territory -
%nodewar_territory_region%
: shows region used by territory -
%nodewar_territory_display%
: shows the territory display name -
%nodewar_territory_vulnerability%
: shows if the territory can be conquered -
%nodewar_territory_max_resistance%
: Shows the maximum resistance of a territory -
%nodewar_territory_resistance%
: Shows the actual resistance of a territory -
%nodewar_territory_regendamage%
: Shows how many resistance per second the territory lose or wins -
%nodewar_territory_empire_owner%
: Shows the empire of the territory -
%nodewar_territory_empire_advantage%
: Shows which empire has the advantage -
%nodewar_territory_damaged%
: Shows if the territory has been attacked (mostly, if terrtory is under attack)