1 | ################################################################################
|
2 | # Flag War for TownyAdvanced #
|
3 | # Copyright (c) 2021 TownyAdvanced #
|
4 | # ======================================================================== #
|
5 | # Licensed under the Apache License, Version 2.0 (the "License"); #
|
6 | # you may not use this file except in compliance with the License. #
|
7 | # You may obtain a copy of the License at: #
|
8 | # #
|
9 | # http://www.apache.org/licenses/LICENSE-2.0 #
|
10 | # #
|
11 | # Unless required by applicable law or agreed to in writing, software #
|
12 | # distributed under the License is distributed on an "AS IS" BASIS, #
|
13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. #
|
14 | # See the License for the specific language governing permissions and #
|
15 | # limitations under the License. #
|
16 | ################################################################################
|
17 |
|
18 | # Note: Do not modify config_version, unless you want to regenerate your config
|
19 | config_version: 1.6
|
20 |
|
21 | # Please see https://github.com/TownyAdvanced/FlagWar/tree/main/src/main/resources/
|
22 | # for available translations. Custom translations are only supported if they are merged.
|
23 | translation: "ru_RU"
|
24 |
|
25 | # (Cosmetic) Show the ASCII banner on startup. Disable for cleaner/smaller server logs.
|
26 | show-startup-marquee: true
|
27 |
|
28 | # General Gameplay Rules
|
29 | rules:
|
30 | # Disabling this effectively disables the whole plugin... but some event listeners will still operate.
|
31 | allow_attacks: true
|
32 |
|
33 | # Force attackers to only attack edge plots.
|
34 | only_attack_borders: true
|
35 |
|
36 | # Prevent attacks on townblocks with x neighbouring plots.
|
37 | # When enabled plots will be protected from attack by neighbouring plots. Flag war will check North,
|
38 | # East, South and West of the plot under attack. By default this requires 3 plots for protection,
|
39 | # requiring attackers to begin from a corner. This Rule should be accompanied by the
|
40 | # flag_takes_ownership_of_town_blocks: true Rule.
|
41 | limit_attacks_based_on_neighbouring_plots: false
|
42 |
|
43 | # How many neighbour plots are required to prevent an attack? Do not set this value to 0.
|
44 | neighbouring_plots_required_to_prevent_attack: 3
|
45 |
|
46 | # False: Attackers capture plots when they win. Disable if you prefer *not* dealing with that.
|
47 | flag_unclaims_townblocks: false
|
48 |
|
49 | # True: Attackers capture plots when they win. Disable if you prefer *not* dealing with that.
|
50 | # This has no effect if flag_unclaims_townblocks is true.
|
51 | flag_takes_ownership_of_town_blocks: true
|
52 |
|
53 | # Will prevent players from performing certain actions while a town is flagged or is in cool-down.
|
54 | prevent_interaction_while_flagged:
|
55 | # Will prevent Towns from leaving Nations, setting HomeBlocks, and un-claiming land; prevent player desertion.
|
56 | town: true
|
57 | # Will prevent Nations from withdrawing money while actively flagged.
|
58 | nation: true
|
59 |
|
60 | # Cool-down period for prevented interactions after a flag has been placed.
|
61 | # Recommended being equal or greater in value to the "flag.waiting_time".
|
62 | prevented_interaction_cooldown: "10m"
|
63 |
|
64 | # Depth (meters) below sea-level a flag may be placed. (world-defined)
|
65 | # Notice: Flags are still subject to submersion checks at this time.
|
66 | flag_depth_allowance: 20
|
67 |
|
68 | # Are nations able to toggle on their neutrality, when FlagWar's allow_attacks is true?
|
69 | nations_can_toggle_neutral: false
|
70 |
|
71 | # Determines accuracy of location broadcasts.
|
72 | # "towny" = Towny World Coordinates (`/towny map`)
|
73 | # "precise" = X,Y,Z coordinates of the flag's base block.
|
74 | flag_broadcast_accuracy: "towny"
|
75 |
|
76 | player_limits:
|
77 | min_online_in_town: 1
|
78 | min_online_in_nation: 1
|
79 | min_online_in_town_to_attack: 1
|
80 | min_online_in_nation_to_attack: 1
|
81 | max_active_flags_per_player: 1
|
82 |
|
83 | # Defines the War Flag structure.
|
84 | # If the defined block is air, or is affected by gravity, it will be overridden by our defaults.
|
85 | flag:
|
86 | waiting_time: "1m" # Time to capture a plot.
|
87 | base_block: 'OAK_FENCE' # Block required to place a flag.
|
88 | light_block: 'TORCH' # TORCH and SOUL_TORCH good. REDSTONE_TORCH questionable.
|
89 |
|
90 | # Defines the War Flag timer blocks.
|
91 | timer_blocks:
|
92 | # Will use the classic wool palette if true.
|
93 | use_default: true
|
94 | # Will set the timer blocks. Each entry is allotted an equal amount of time.
|
95 | # Use multiple entries to achieve more granularity. Case-insensitive.
|
96 | blocks:
|
97 | - lime_terracotta
|
98 | - green_terracotta
|
99 | - blue_terracotta
|
100 | - cyan_terracotta
|
101 | - light_blue_terracotta
|
102 | - gray_terracotta
|
103 | - white_terracotta
|
104 | - pink_terracotta
|
105 | - orange_terracotta
|
106 | - red_terracotta
|
107 |
|
108 | # Defines War Flag Hologram settings
|
109 | # Requires HolographicDisplays
|
110 | holograms:
|
111 | # If true, and if HolographicDisplays is present, holograms will appear when a war flag is placed.
|
112 | enabled: false
|
113 | # Defines the lines of the hologram. The number indicates the line number. Starts at zero.
|
114 | # Use an item type to add a floating item.
|
115 | # Use a text type to add text.
|
116 | # Use the timer type to indicate the time left. Only one timer line may be used.
|
117 | # The timer formatting can be customised as described here:
|
118 | # https://docs.oracle.com/en/java/javase/16/docs/api/java.base/java/util/Formatter.html
|
119 | # Argument Index: Seconds is the first argument, minutes the second argument, and hours the third argument.
|
120 | lines:
|
121 | 0:
|
122 | type: item
|
123 | data: DIAMOND_SWORD
|
124 | 1:
|
125 | type: text
|
126 | data: "&c&lWar Flag"
|
127 | 2:
|
128 | type: timer
|
129 | data: "&aTime Left: %2$d:%1$02d"
|
130 |
|
131 | # Define Beacon Structure
|
132 | beacon:
|
133 | draw: true
|
134 | radius: 3
|
135 | height_above_flag.min: 3
|
136 | height_above_flag.max: 64
|
137 | wireframe_block: 'GLOWSTONE'
|
138 |
|
139 | # Define Economy Transactions
|
140 | economy:
|
141 | town_block_captured: 10.0
|
142 | home_block_captured: 100.0
|
143 | war_flag_cost: 10.0
|
144 | attack_defended_reward: 10.0
|
145 |
|
146 | # Define what is allowed to take place in TownBlocks which have attacks on-going.
|
147 | warzone:
|
148 | # List of materials that can be modified in a warzone.
|
149 | # '*' = Allow all materials.
|
150 | # Prepend a '-' in front of a material to remove it. Used in conjunction with when you use '*'.
|
151 | # Eg: '*,-chest,-furnace'
|
152 | editable_materials: tnt,oak_fence,birch_fence,spruce_fence,jungle_fence,dark_oak_fence,acacia_fence,ladder,oak_door,birch_door,spruce_door,jungle_door,dark_oak_door,acacia_fence,iron_door,fire
|
153 | item_use: true
|
154 | switch: true
|
155 |
|
156 | # Add '-fire' to editable materials for complete protection when setting is false. This prevents fire to be created and spread.
|
157 | fire: true
|
158 | explosions: true
|
159 | explosions_break_blocks: true
|
160 |
|
161 | extra:
|
162 | # If enabled, show additional debug messages as warnings. Recommended keeping these disabled unless requested.
|
163 | debug: false
|