• 欢迎来到Minecraft插件百科!
  • 对百科编辑一脸懵逼?帮助:快速入门带您快速熟悉百科编辑!
  • 因近日遭受攻击,百科现已限制编辑,有意编辑请加入插件百科企鹅群:223812289

“Towny”的版本间的差异

来自Minecraft插件百科
跳转至: 导航搜索
第47行: 第47行:
 
== 重要信息 ==
 
== 重要信息 ==
  
=== Towny 安装指南 ===
+
=== 城镇安装指南 ===
  
  
 
:Here are instructions to install Towny for the first time. There are a few steps so follow them all carefully.<br />
 
:Here are instructions to install Towny for the first time. There are a few steps so follow them all carefully.<br />
  
:'''Step One Preparing your server.'''<br />
+
:'''第一步 准备好你的服务器.'''<br />
  
 
:#Stop your server completely.
 
:#Stop your server completely.
第65行: 第65行:
 
:#Stop your server.
 
:#Stop your server.
  
=== Towny 升级向导 ===
+
=== 城镇升级向导 ===
  
 
:Here are instructions for performing a Towny Upgrade from a previous version:
 
:Here are instructions for performing a Towny Upgrade from a previous version:
  
:'''Towny Upgrade Instructions'''
+
:'''城镇升级向导'''
  
 
:*Stop your server completely.
 
:*Stop your server completely.
第88行: 第88行:
  
 
----
 
----
==== <big>The Hierarchy</big> ====
+
==== <big>等级制度</big> ====
  
===== Nomads =====
+
===== 流浪者 =====
  
:Nomads are simply players who are not part of any town. They are landless and their permission nodes are configurable via TownyPerms.yml. Nomads can purchase Embassy plots if they have been given towny.command.plot.claim in the Townyperms.yml
+
:流浪者不属于任何城镇. 他们没有土地和权限(权限可在 TownyPerms.yml 内设置). 流浪者可以购买大使馆区块入股他们有towny.command.plot.claim 权限(在Townyperms.yml 内)
  
 
===== 居民 =====
 
===== 居民 =====
  
:Every person who joins your server can become a resident (the are given the towny.town.resident permission node in townyperms.yml’s nomad section.) Residents have their own command /resident which used by itself outputs a Resident Screen, displaying Money, Town, Plots owned and Friends.
+
:每个加入你服务器的人都可以成为居民 (他们会获得 towny.town.resident权限,在 townyperms.yml的流浪者部分.)居民可以使用 /resident 来获得居民信息, 包括 金钱, 所属城镇, 拥有的地皮和朋友.
  
:Residents can join towns or choose to start a town of their own. Residents can also be put into one town automatically when they join the server for the first time by setting default_town_name: '' in config.yml.
+
:居民可以加入城镇. Residents can also be put into one town automatically when they join the server for the first time by setting default_town_name: '' in config.yml.
  
:Residents who join towns can claim plots that the Mayor of the town has set for sale. When a resident owns 1 or more plots, they will see a new line on their Resident Screen, showing plots owned and a perm line showing the plot perms given on all plots that resident owns.
+
:加入城镇的居民可以声明城主已设置出售的区块. 当居民拥有土地后, 可以在居民信息内看到展示拥有区块数和个人地皮权限.
  
:Residents have their permission nodes configurable via TownyPerms.yml.
+
:居民拥有的权限可在 TownyPerms.yml 内设置.
  
 
===== 城镇 =====
 
===== 城镇 =====
  
:A town is a collection of residents (or just one resident) with one resident as the mayor. A town also has a bank which the mayor can withdraw from. A mayor can also have assistants who have the same powers as him/herself. Towns can have taxes that will be taken at the end of each day interval.
+
:城镇是拥有一位城镇统治的居民聚居的地方 (或是只有一位居民). A town also has a bank which the mayor can withdraw from. A mayor can also have assistants who have the same powers as him/herself. Towns can have taxes that will be taken at the end of each day interval.
  
 
:Towns usually grow outwards from their home block, the townblock the mayor stood in during town creation. Townblocks need to be claimed beside other townblocks, unless the mayor claims an outpost in the wilderness.
 
:Towns usually grow outwards from their home block, the townblock the mayor stood in during town creation. Townblocks need to be claimed beside other townblocks, unless the mayor claims an outpost in the wilderness.

2017年12月22日 (五) 17:58的版本

Icon-info.png
本页面已存在其他语言的内容,请协助翻译为本地化的中文。
  • 点击此处开始翻译。
  • 如本模板出现在原文存档页面,请注意更新主页面后,仍需要去除此处该模板。
  • 如当前页面已经没有需要翻译的内容,请删去待翻译模板。
  • 有标题的大篇幅文章,如果短时间内无法全部翻译,请先把所有的标题翻译出来,以便之后的贡献者选择与翻译章节内容。


介绍

Towny Advanced is a versatile, player-controlled land management plugin for use with Bukkit/Tekkit/Spigot/Libigot. Towny offers solutions for pvp, griefing, chat, inflated economies and monsters to minecraft server admins. Towny allows players to work together and against each other as they see fit.

特性

城里的包括各种各样的功能,为传统的Minecraft服务器作出改革.

  • 允许玩家根据预先设定的网格区块布局拥有和管理土地
    • 玩家可以加入城镇和购买土地.
    • 玩家可以设置每块地皮的 破坏、建筑、使用、“开关”和使用物品的权限.
    • 城镇可以加入国家, 把服务器分成不同的势力.
    • 城镇可设置:防护,怪物生成, pvp, 火焰, 爆炸和greifing.
  • 野外规则 (可选)
    • 城镇之外的区域是荒野, 拥有独自的建筑权限.
    • 通过限制玩家与荒郊野外的方块交互来保持原生态的环境.
    • 回档 tnt, 爬行者, 凋灵爆炸, 末影龙破坏和末影人搬走方块.
    • 阻止爆炸破坏和火焰扩散.
  • PVP增强
    • 一个强大的PVP服务器会发现城镇的玩家分组是很有用的.
    • 防止friendly-fire. (可选)
    • 国家把玩家分到更大的队伍中.
    • 一个国家可以把其他国家视为盟国或敌国.
    • 可以在野外、城镇和世界内开关PVP. (可选)
  • 传送和出生点 (可选)
    • 玩家死亡后可以重生在城镇出生点.
    • 玩家可以传送到城镇出生点或其他结盟或盟国的城镇.
    • 用床可以使玩家在个人 土地上重生.
  • 可修改的自定义聊天格式. (可选)
    • 颜色, 组的前缀和后缀, 国家, 城镇, 城镇标题.
    • 聊天频道:全体, local, 城镇, 国家, moderator, 管理员和自定义聊天频道.
    • Anti-spam 特性.
  • 商店插件支持. (可选)
    • 限制商店区块的商店数量, 更加真实.
  • 经济插件交互. (可选)
    • 支持所有经济插件.
    • 付费购买土地,建立城镇和国家.
    • 灵活的税收系统.
    • 用资金来维护城镇和国家, 防止疯狂的通货膨胀.
  • 支持所有权限插件. (可选)
    • Perms 2/3, GroupManager, BukkitPermissions, bPermissions, PermissionsEx, 等.
  • 多世界支持
    • 每个时间不同的配置.
    • 在任意世界开关城镇管辖.

重要信息

城镇安装指南

Here are instructions to install Towny for the first time. There are a few steps so follow them all carefully.
第一步 – 准备好你的服务器.
  1. Stop your server completely.
  2. Download the following and copy to your Plugins folder (Place .jar files in the plugins folder, not the actual .zip):
  • Download Towny Advanced.zip (Includes Towny, TownyChat and Questioner.)
    • Towny.jar is required at all times,
    • TownyChat.jar is required if you want to have Towny modify chatting in any way. (Adding prefixes and suffixes from your permissions plugin to chat, adding town/nation/world to chat, adding chat channels.)
    • Questioner.jar is required if you want players to receive invites to towns, instead of being added automatically.
  • If you use any economy plugin other than iConomy 5.01 you will be required to download Register.jar or Vault and put it in your plugins folder.
    • If your economy plugin is supported by Vault, do not use Register.jar, instead use only Vault.
  1. Start your server.
  2. Stop your server.

城镇升级向导

Here are instructions for performing a Towny Upgrade from a previous version:
城镇升级向导
  • Stop your server completely.
  • Backup your entire server!
  • Download Towny_Advanced.zip and extract the 4 .jar files into your plugins folder (Register is not required if your server already uses Vault.jar).
  • Start your server.
  • Stop your server.
  • Upgrade from pre-0.79.0.0
    • The chat section of config.yml has been move to a new file, channels.yml. Edit the new channels.yml to your liking.
  • Upgrade from pre-0.82.0.0
  • Towny has had TownyPerms added. This new file located at townysettingstownyperms.yml will be generated when you first start your server using Towny 0.82.0.0 or higher.
  • TownyPerms adds town/nation ranks so server admins can specify what each rank can do (nomads, residents, mayors, kings, etc) Admins can also create custom ranks with custom permission sets. Any existing players set as assistants will lose their rank and need to have it re-assigned.
  • Start your server.

Towny 的工作方式

Use this page to learn how Towny works, how various settings affect the gameplay, what you can do to customize Towny to your liking.


等级制度

流浪者
流浪者不属于任何城镇. 他们没有土地和权限(权限可在 TownyPerms.yml 内设置). 流浪者可以购买大使馆区块入股他们有towny.command.plot.claim 权限(在Townyperms.yml 内)
居民
每个加入你服务器的人都可以成为居民 (他们会获得 towny.town.resident权限,在 townyperms.yml的流浪者部分.)居民可以使用 /resident 来获得居民信息, 包括 金钱, 所属城镇, 拥有的地皮和朋友.
居民可以加入城镇. Residents can also be put into one town automatically when they join the server for the first time by setting default_town_name: in config.yml.
加入城镇的居民可以声明城主已设置出售的区块. 当居民拥有土地后, 可以在居民信息内看到展示拥有区块数和个人地皮权限.
居民拥有的权限可在 TownyPerms.yml 内设置.
城镇
城镇是拥有一位城镇统治的居民聚居的地方 (或是只有一位居民). A town also has a bank which the mayor can withdraw from. A mayor can also have assistants who have the same powers as him/herself. Towns can have taxes that will be taken at the end of each day interval.
Towns usually grow outwards from their home block, the townblock the mayor stood in during town creation. Townblocks need to be claimed beside other townblocks, unless the mayor claims an outpost in the wilderness.
镇长
Mayors run towns and with the help of their assistants, manage a town and its residents. Mayors have their permission nodes configurable via TownyPerms.yml.
Mayors can decide which ranks their residents fall into, in their town. This can be a Town Assistant or any other custom ranks created by the server admin in the townyperms.yml file. Mayors can see the available ranks using ‘/town ranklist’ command. Players are ranked using ‘/town rank {add|remove} {playername} {rankname}’. A player can have more than one rank assigned, allowing admins to create diverse town-roles such as bankers, builders, inviters for the mayor to choose for their trusted residents.
It is not possible to run two towns unless you are also an admin. An admin can do the following to manage two or more towns:
 Example: Admin Bob
 Admin Bob wants to have a server-town, and his own town. Bob would start by creating his Server Town and setting up taxes, plotprices, permissions. This sort of town should not give residents, allies or outsiders permissions in the     
 Server Town.
 When Bob finished making his town the way he wants he uses /townyadmin set mayor {townname} npc to place a fake 'npc' resident as mayor of the Server Town.
 Then Bob leaves Server Town and creates his own town. Using the /townyadmin set mayor {townname} npc command Bob can flip back and forth between towns.
 Bob doesn't have to leave his town to add players to the Server Town though! He can use /townyadmin town {townname} add {playername}  to add players to the Server Town or set default_town_name: 'Server_Town' in config.yml.
 Bob can also add the NPC town into a nation using /ta nation {nation} add {town}.
国家
A nation is a collection of towns (or just one town) with one town as the capital. The mayor of that capital is the king. A nation can join the war event, as well as ally other nations. A nation also has it’s own bank. It can also tax the towns that belong to it.
Two nations can decide to join in an alliance, which allows them to be protected from friendly fire, help on each others plots (if the plot’s perm line allows allies,) and to help each other in war.
As of 0.91.0.0, you may restrict nation alliances to be 2-way only. So that Nation A cannot consider Nation B an ally unless the Nation B also considers Nation A an ally. You may turn this setting on in the config: war.disallow_one_way_alliance, which defaults to false.
Also, as of 0.91.0.0, you may restrict who can create, join and maintain a nation by requiring a minimum number of residents. See the Global Town Settings section of the config.yml.
国王
Kings lead Nations and are the mayor of the capital city. Kings have their permission nodes configurable via TownyPerms.yml.
Kings can decide which ranks their residents fall into, in their nation. This can be a Nation Assistant or any other custom ranks created by the server admin in the townyperms.yml file. Kings can see the available ranks using ‘/nation ranklist’ command. Players are ranked using ‘/nation rank {add|remove} {playername} {rankname}’. A player can have more than one rank assigned, allowing admins to create diverse nation-roles such as bankers, inviters for the king to choose for their trusted residents.
Kings have the ability to set titles (prefixes) and surnames (postfixes) to the residents of the towns they have in their nation. This is done with:
  • /nation set title {name} titlegoeshere
  • /nation set surname {name} surnamegoeshere
Typing the commands with nothing after the player’s name resets the title or surname to blank.
Configuring Townyperms.yml and the Roles of the Ranks Within
New to Towny 0.82.0.0 and onwards towny has a new configuration file, TownyPerms.yml, located in the towny\settings\ folder.
This system pushes permissions directly to Bukkit and works along side all other perms plugins. It allows you to define sets of permissions based upon a players status (nomad/resident/mayor/king). You can also assign additional permissions based upon any assigned town/nation ranks (assistant/vip etc). This system is not limited to Towny permission nodes. You can assign any permissions for any plugins in it’s groups.
This file allows admins to decide what each player-rank can do. Some ranks are assigned automatically:
  • Players without towns are Nomads.
  • Players in towns are Residents.
  • Owners of towns are Mayors.
  • Owners of nations are Kings.
Some ranks are assigned by Mayors or Kings, and supplement the ranks the players already have:
  • Mayors can make a resident a Town Assistant.
  • Kings can make a resident a Nation Assistant.
  • Mayors and kings can grant admin-created ranks, allowing for diverse customization.
  • A player can attain many Supplemental ranks from their mayor or king, allowing for diverse nation/town-roles.
  • Examples of this would be town-builders, town-bankers, nation-bankers, town-inviters, etc.
A resident of a town can see the ranks within their town using ‘/town ranklist’. A mayor can use ‘/town rank {add|remove} {playername} {rankname}’ to give a player a new rank within their town. A king can use ‘/nation rank {add|remove} {playername} {rankname}’ to give a player a new rank within their nation.
设置国家和国王的标题, 城镇和国家的名字
Towny gives you the ability to customize the naming scheme applied to Mayors, Kings, Towns, Capital Cities and Nations.
This is done with two sections in the config.yml
  • town_level:
    • The basic layout of the townLevel lines are as follows:
    -   upkeepModifier: 1.0
        namePostfix: ' (Settlement)'
        mayorPrefix: 'Hermit '
        mayorPostfix: 
        townBlockLimit: 16
        namePrefix: 
        numresidents: 1
    -   upkeepModifier: 1.0
        namePostfix: ' (Hamlet)'
        mayorPrefix: 'Chief '
        mayorPostfix: 
        townBlockLimit: 32
        namePrefix: 
        numResidents: 2
  • These are read as follows:
  • upkeepModifier: 1.0 – Use a higher multiplier to increase the upkeep as towns get more residents (unless you use town_plotbased_upkeep:true in which case it is based off of plot-count rather than resident-count.)
  • namePostfix: ‘ (Settlement)’ – This is added to the end of the town name.
  • mayorPrefix: ‘Hermit ‘ – This is added to the front of the mayor’s name.
  • mayorPostfix: ” – This is added to the end of the mayor’s name.
  • townBlockLimit: 16 – This decides how many townblocks a town gets, it is only used if town_block_ratio: ‘0’ is set in the config.yml.
  • namePrefix: ” – This is added to the front of the town name.
  • numresidents: 1 – This is how many residents a town needs to have in order to attain the prefixes/postfixes of the townlevel.
  • The two levels above are for towns of 1 and 2 residents. When a town is created the mayor’s new town has (Settlement) added to the end of his townname and he is given the prefix of Hermit. When the mayor gets a second resident his town becomes Townname (Hamlet) and he receives the prefix of Chief.
  • nation_level:
    • The basic layout of the nationLevel lines are as follows:
        -   capitalPostfix: 
            upkeepModifier: 1.0
            namePostfix: ' (Nation)'
            kingPrefix: 'Count '
            townBlockLimitBonus: 10
            namePrefix: 'Federation of '
            numResidents: 10
            capitalPrefix: 
            kingPostfix: 
            nationTownUpkeepModifier: 1.0
        -   capitalPostfix: 
            upkeepModifier: 1.0
            namePostfix: ' (Nation)'
            kingPrefix: 'Duke '
            townBlockLimitBonus: 20
            namePrefix: 'Dominion of '
            numResidents: 20
            capitalPrefix: 
            kingPostfix: 
            nationTownUpkeepModifier: 1.0
  • These are read as follows:
  • capitolPostfix: ” – This is added to the end of the capital city of the nation.
  • upkeepModifier: 1.0 – Use a higher multiplier to increase the upkeep as nations get more residents (unless you use town_plotbased_upkeep:true in which case it is based off of plot-count rather than resident-count.)
  • namePostfix: ‘ (Nation)’ – This is added to the end of the nation name.
  • kingPrefix: ‘Count ‘ – This is added to the front of the nation-leader.
  • townBlockLimitBonus: 10 – This is the number of bonus townblocks given to a town when they join a nation.
  • namePrefix: ‘Federation of ‘ – This is added to the front of the nation name.
  • numResidents: 10 – This is how many residents a nation must have to receive the prefixes and postfixes of the nation level.
  • capitalPrefix: ” – This is added to the front of the capital city of the nation.
  • kingPostfix: ” – This is added to the end of the nation-leader’s name.
  • nationTownUpkeepModifier: 1.0 – Joining a nation will lower/raise how much town upkeep your town pays. This multiplier is calculated after all other multipliers have their effect on the town upkeep cost. When set at 1.0, there is no :*change to upkeep.

如何发展城镇

城镇起源
Mayors start towns using the command /town new {townname}. The townblock they are standing in will be the home block for the town, the exact spot/position will be the spawn point for the town.
More townblocks can be claimed using /town claim. These townblocks need to be directly adjacent to already claimed townblocks.
加入城镇
There are two ways to join towns, the first is by being invited by a Mayor or a Town assistant. The second it by joining an open town.
Mayors and assistants can add players to their town with the command /town add {playername}. If the server has Questioner.jar and using_questioner: true in the Towny config.yml then the player will receive a prompt to either /accept or /deny the invitation.
Mayors can set their towns to open using /town toggle open. A player who isn’t in a town already can use the command /town join {townname} to join open towns.
When residents join towns they increase the number of townblocks accessible to the mayor for claiming.

土地所有制

城镇区块
Towny provides a server admin a hands-off approach to block-protection. Block protection is broken down into plots of land, called townblocks, which by default are 16x16x128 (the full height of the world.)
Townblocks are claimed by town mayors who can then sell/give individual plots to their town’s residents.
城镇区块大小
You change the townblock size in config.yml at town_block_size: 16. Changing this value is suggested only when you first install Towny.a
Doing so after entering data will shift things unwantedly. Using smaller value will allow higher precision,at the cost of more work setting up. Also, extremely small values will render the caching done useless.
Each cell is (town_block_size x town_block_size x 128) in size, with 128 being from bedrock to clouds.
设置每次声明城镇区块的范围
You can change how many town blocks a town gets to claim. This is done in two places.
Towny checks first in the config.yml at town_block_ratio: 8 and by default gives a town 8 townblocks per resident.
You can override this by setting town_block_ratio: 0 and using the townLevel section of the config.yml
More information on the townLevel line and how to configure it is here.
购买城镇区块
Mayors can buy townblocks using /town buy bonus {amount}. An admin can set a maximum limit on how many townblocks a town can buy in the config.yml at max_purchased_blocks: '0'. The price of a bought townblock is also set in the config.yml at price_purchased_bonus_townblock: '25.0'.
Using this feature, mayors can grow their town without needing new residents.
土地类型
Towny post-0.75 has added plot types besides the default. This is to give mayors more control over their towns.
As of now there are:
默认土地
These plots do not need any specific command to be designated.
They are put up for sale with /plot forsale {$$}.
A plot which is not of default type can be reset to a default plot with /plot set reset.
商店
Shop plots are designated with /plot set shop
A mayor can use /town set shopprice {$$} to set how much shop plots are sold at by default. This can be overriden when a mayor puts the actual plot up for sale with /plot forsale {$$}.
A mayor can also charge an additional shoptax with /town set shoptax {$$}. This tax is charged in addition to the normal plottax.
竞技场
Arena plots are designated with /plot set arena.
PVP is on all the time in arena plots as well as friendly-fire damage. Town health regen is also disabled in arena plots.
大使馆
Embassy plots are designated with /plot set embassy
A mayor can use /town set embassyprice {$$} to set how much embassy plots are sold at by default. This can be overriden when a mayor puts the actual plot up for sale with /plot forsale {$$}.
A mayor can also charge an additional embassytax with /town set embassytax {$$}. This tax is charged in addition to the normal plottax.
An embassy plot can be bought by any player, whether they are in a town or not. The townblock remains owned by the host-town and a mayor from the host-town can take the plot from the owner at any time.
Embassy plots can also be changed into shop plots, allowing for larger shop towns, where many different towns’ players can set up shops.
When a player leaves a town they do not lose ownership of their plots if those plots are set to be Embassy plots.
荒郊野外
Wilds plots are designated with /plot set wilds
A wilds plot allows residents to destroy the blocks found on the wild ignore ID list. This includes ores, trees, flowers, mushrooms and other harvestable blocks by default. It does not include stone, dirt, grass and other terrain blocks.
It is useful for creating tree farms, and protecting the terrain around a town, while still allowing residents to cut trees and explore caves.
Setting up wilds plots can be slightly complex, here are instructions.
  1. Navigate to your towny\data\worlds\WORLDNAME.txt file
  2. Set:
    • unclaimedZoneBuild=false
    • unclaimedZoneDestroy=false
  3. Configure the unclaimedZoneIgnoreIds line to include the blocks you would like players to break/build.
  4. Go to the Wilds plots you can set using /plot set wilds
  5. Use ‘/plot set perm resident build on’ and ‘/plot set perm resident destroy on’ to enable residents to break/build using only the blocks in the ignoreIDs list.
旅店
Inn plots are designated with /plot set inn
An Inn plot allows anyone to use a bed to set their ‘/res spawn’ and spawn on death. The Inn plot will still deny a player who is in a nation declared as an enemy by your nation.
For them to function deny_bed_use: ‘true’ must be set in the config.yml
监狱
Jail plots are designated with /plot set jail
  • 可以囚禁玩家
  • 如果玩家所在的城主/警察 把该玩家送到监狱.
  • 攻击城镇的人将被视为敌人 (国家关系) dies in that Town. He is sent to the first available Jail plot of the defending town.
  • 囚犯将被释放 如果:
  • 他们离开自己的城镇而变为流浪汉,
  • 城镇/警察释放了他,
  • 玩家向被监禁的城镇支付保释金, (使用: /resident jail paybail)
  • 他们设法逃出了监狱区块并到达荒野.
  • 囚犯无法传送.
  • 除非配置里开启,否则囚不能使用末影珍珠.
  • 死亡的囚犯就会被送回监狱.
  • 囚犯被杀不会获得金钱.
  • 囚犯 show their jailed status in the /res [playername] screen, along with the town they are jailed in.
  • It is suggested you make a new town rank in the townyperms.yml called Sheriff, and give that rank the towny.command.town.toggle.jail node. Newly generated townyperms.yml files will contain this rank by default.
农场
Farm plots are designated with /plot set farm
A Farm plot players to only build/destroy blocks designated in the Towny Config.yml at global_town_settings.farm_plot_allow_blocks. By default this list includes “LONG_GRASS, DOUBLE_PLANT, YELLOW_FLOWER, RED_ROSE, PUMPKIN_STEM, MELON_STEM, BEETROOT_BLOCK, CARROT, POTATO, CROPS, MELON_BLOCK, PUMPKIN”.
Who can build/destroy these blocks is still determined by the plot’s perm line seen in the /plot perm screen. This means that if B=rao, anyone can plant/place the allowed blocks in the plot. If the B=r– then only town residents can plant/place the allowed blocks.
If admins want, they can add SOIL to the allowed blocks list, which will allow anyone allowed via the perm line to also make soil with a hoe. By default SOIL is not included and only admins/mayors/assistants will be able to create soil with a hoe. Towny already protects soil from being stomped into grass, so soil will only return to dirt if it is not irrigated.
Farm plots also allow town residents to kill animals in the plot. The list of animals is set in the config at global_town_settings.farm_animals. By default this list includes “PIG,COW,CHICKEN,SHEEP,MOOSHROOM”.
前哨
Normally townblocks are claimed around the home block, always connected to the town. To claim a townblock out in the wilderness, a mayor or assistant must claim an outpost.
In order for players to claim outposts, the config must be set to allow_outposts: true and players require towny.town.claim.outpost in their permission node group.
An admin can configure how many outposts a player can claim, this is set in your permissions plugin’s info/option/meta node section using the towny_maxoutposts: {number} info node. See here.
Outposts cannot be claimed too close to other home blocks, just like when a mayor starts a town they cannot be too close. The exact number is set in the config.yml at min_distance_from_town_homeblock: 5. In the default setting an outpost cannot be claimed within 5 townblocks of any other homeblock.
Outposts have two settings in config.yml
  • By setting allow_outposts: false you can disable outposts completely.
  • You can also set the cost of claiming an outpost with price_outpost: 500.0
Outposts can be teleported to, mayors set the spawn point of the outpost when they claim it or using ‘/town set outpost’. Players teleport to the outpost using ‘/town outpost x’ (with x being a number 1 – however many outposts the town has.)
出售中的土地

Land is sold by Mayors to Residents that are a part of their town. using_iconomy: true must be set in config.yml in order for costs to be applied. Mayors have a command used in game to set the cost of all the plots that are set for sale hence-forth.

  • /town set plotprice {$}
  • This sets the cost of newly-set-for-sale plots, already set-for-sale plots keep their costs. If it is not set, the plots will cost $0 by default.
To put a plot up for sale a mayor, while standing in the plot, type /plot forsale {optional cost} The resident would then type /plot claim while standing in the plot to buy it.
地图用法
The map in towny displays the grid system of plots. The map can be viewed once using /towny map one time or you can set the map to show every time you move from one block to another:
  • Use /resident set mode map to turn it on.
  • And use /resident set mode reset to turn it off.
A large version of the map can be seen using /towny map big.
土地再生 & 未声明的土地

There are 4 options for affecting townblocks/plots.

恢复到未成为城镇土地前的原生态的样子
When a town plot is unclaimed (by a player or through upkeep) it will slowly begin to revert to a pre town state. Blocks will slowly change back to whatever blocks we’re present at the moment the town block was claimed. A townblock must revert completely before the snapshot of the townblock is removed. If townblock is reclaimed mid-revert, a new snapshot is not taken and if the townblock is unclaimed again it will revert to the original snapshot.
  • Disabling this feature is done in the towny\data\worlds\worldname.txt @ 'usingPlotManagementRevert=false'
  • or by using ‘/tw toggle revertunclaim’ while standing in the world you want to toggle it in.
  • Disabling this feature for new worlds is done in the config at new_world_settings.plot_management.revert_on_unclaim.enabled
You can configure certain block types you don’t want restored to prevent players exploiting regen for diamond ores.
  • Block types to not restore are configured in block_ignore in the worlds txt file data/worlds/worldname.txt
  • Defaults for new worlds are set in the config at new_world_settings.plot_management.revert_on_unclaim.block_ignore:
在未声明区块内删除预定义ID的方块
When a town plot is unclaimed (by a player or through upkeep) block IDs matching a list will be deleted within that townblock. This can be useful for deleting all signs within a townblock, ensuring any chests locked with Lockette or Deadbolt signs are unlocked.
  • Disabling this feature is done in the towny\data\worlds\worldname.txt @ usingPlotManagementdelete=false
  • Disabling this feature for new worlds is done in the config at new_world_settings.plot_management.block_delete.enabled
You can configure the list of blockIDs to be removed on a per-world basis.
  • The blockIDs listed in the towny\data\worlds\worldname.txt @ 'plotManagementDeleteIds=' will be removed from the townblock.
  • Defaults for new worlds are set in the config at new_world_settings.plot_management.block_delete.unclaim_delete
地主和城主的 /plot clear 指令
A feature available only to Town Mayors on public town land: /plot clear. This command is meant to be used after a plot was personally owned by a resident, who either moved to another plot or left town. By default this list includes only signs, useful for mayors to remove sign-protection on doors, chests, furnaces, dispensers and trapdoors given via Lockette or Deadbolt.
  • Disabling this feature is done in the in the towny\data\worlds\worldname.txt @ usingPlotManagementMayorDelete=false
  • Disabling this feature for new worlds is done in the config at new_world_settings.plot_management.mayor_plotblock_delete.enabled
You configure the list of blockIDs to be removed when this command is used.
  • The list of blockIDs is listed in the towny\data\worlds\worldname.txt @ plotManagementMayorDelete=WALL_SIGN,SIGN_POST
  • Defaults for new worlds are set in the config.yml at new_world_settings.plot_management.mayor_plotblock_delete.mayor_plot_delete

As of Towny 0.79.1.0, players can use this command within plots they personally own.

荒芜大地之回溯
A simple wild_revert_on_mob_explosion option. Will regenerate explosions on a timer.

As of Towny 0.79.1.0 You can now add any entities here you want explosions to revent for in the wilderness (includes Creeper,EnderCrystal,EnderDragon,Fireball,SmallFireball,TNTPrimed). These settings are copied to the individual world files, so you must make changes per world.

  • Disabling this feature is done in the in the towny\data\worlds\worldname.txt @ usingPlotManagementWildRegen=true
  • or by using ‘/tw toggle revertexpl’ while standing in the world you want to toggle it in.
  • Disabling this feature for new worlds is done in the config at new_world_settings.plot_management.wild_revert_on_mob_explosion.enabled
You can configure how quickly the blocks will regenerate, specifically how much time in between each block being reverted.
  • The timer is changed in the towny\data\worlds\worldname.txt @ usingPlotManagementWildRegenDelay=5
  • The default for new worlds is set in the config.yml at new_world_settings.plot_management.wild_revert_on_mob_explosion.delay

城镇怎样保护玩家的财产安全

Towny’s genius is the way it lets players protect themselves. An admin doesn’t need to go around protecting land for players, and players can’t run rampant claiming massive amounts of land without working for it and building their towns.
The first concept you need to digest are the 4 perm-types and 3 groups.
城镇地皮权限
There are 4 permission-type values, which can be set for personal plots and for town plots as well (town permissions can be set by the mayor and affect plots who are not owned by any player.) The basic command for this is either /resident set perm or /town set perm followed by the proper flags for each permission.
Available in Towny 0.77.0.0 and onward are per-plot permissions. Plots start with the default settings for plot perms (be it a resident-owned or town-owned plot,) but the owner of the plots can set different perms to different plots. To view a plots perm type /plot perm and to set a plots’ perms use /plot set perm.
Default permissions are viewable by typing either /resident for personal plot perms or by typing /town for town permissions.