跳转至主要内容

Towny

info

找不到在哪里下载JAR? 点击这里.

caution

警告! 这是一个超级复杂的模块,请仔细阅读文档!

命令

/quickshop nation

Nation 子命令允许您在普通商店和国家商店之间切换。

/quickshop town

Town 子命令允许您在普通商店和城镇商店之间切换。

国家商店

对于国家商店,店主将更改为由Towny创建的对应国家的假玩家,并使用该国家所指定的税收账户作为其税务帐户。

所有交易都将存入或从国家城镇账户提款。
同时启用银行模式, 价格将根据配置文件中项目的价格强制自动调整。

如果启用了地皮类型限制,则只有特定的地皮类型才能创建国家商店。

城镇商店

对于城镇商店,店主将更改为Towny创建的城镇的假玩家,并使用该城镇所指定的的税收帐户作为其税务账户。

所有交易都将存入或从城镇账户提款。
同时启用银行模式, 价格将根据配置文件中项目的价格强制自动调整。

如果启用了地皮类型限制,则只有特定的地皮类型才能创建城镇商店。

银行系统

银行系统允许您通过QuickShop-Hikari完成您的城镇/国家经济体系循环。

您可以设置额外的百分比以 在交易期间 印钱。

#银行模式下的商店将只接受玩家的物品,但钱转入城镇银行账户。
#银行模式更多配置
银行模式:
#当商店在银行地皮,只允许商店为银行模式。
只允许银行地皮:true
#强制银行模式商店使用配置中指定的价格。
#未包括的物品将拒绝转为银行模式商店
启用:true
#可以通过银行模式收取部分的钱作为手续费。
extra-percent: 0.10 # 0.10 = 10%
#Item list
#Only allow the bank mode shops created if they trade those items.
#要添加一个物品的价格来锁定物品的价格(如果启用强制价格)
#设置-1将禁用这种物品的价格锁定,即使启用了强制价格。
#矿物:价格
物品列表:
铜矿:0.01
铁矿:0.05
煤矿:0.10
青金石矿:0.25
红石矿:1.00
金矿:5.00
钻石矿:20.00
绿宝石矿:500.00
深板岩铜矿:0.01
深板岩铁矿:0.05
深板岩煤矿:0.10
深板岩青金石矿:0.25
深板岩红石矿:1.00
深板岩金矿:5.00
深板岩钻石矿:20.00
深板岩绿宝石矿:500.00
下界石英矿:0.50
下界金矿:1.25
远古残骸:250.00
海洋之心:2500.00
附魔金苹果:25000.00

权限覆盖

通过调整配置,您可以允许市长或国王自动授予其管理范围内所有商店的管理员权限。

#由市长授权设立商店管理员。
允许市长授权覆盖:true

#允许镇长授予商店管理员权限。
允许国王权限覆盖:true

名称覆盖

我们提供了一种,以便在国家/城镇商店的信息牌上显示国家名称或城镇名称。

#允许用城镇/乡村保险库名称 覆盖显示 所有者名称。
允许所有者名称覆盖:true

城镇税收

此机制允许您设置 QuickShop Hikari 税收系统,以优先向城镇或国家的城镇系统帐户纳税,而不是服务器税务帐户。

#Should we send the taxes to the town/nation vault account if shop inside a town or nation.
#NOTE: If shop belongs to a Town or Nation, taxes will still send to Server taxes account.
taxes-to-town: true

商店删除监听

与其他兼容性模块一样,Towny 扩展组件也允许您在居民离开您的城镇、重置地皮和取消认领地皮时删除商店。

#Should we delete player's shops in town when they leaved the that town
delete-shop-on-resident-leave: false

#Should we remove the shops in plot when plot cleared
delete-shop-on-plot-clear: true

#Should we remove the shops in plot when plot unclaimed
delete-shop-on-plot-unclaimed: true

创建/交易控制

#Which checks does a player need to pass to create a shop?
#You can use multiple checks at the same time.
#Priority: UP > DOWN
#
#Available fields:
#OWN = The player must own the plot to create a shop.
#MODIFY = The player must have the ability to build on the target plot to create a shop.
#SHOPTYPE = The player must create the shop on a SHOP type plot.
create:
- SHOPTYPE
- MODIFY

#Which checks does a player need to pass to trade with a shop?
#You can use multiple checks at the same time.
#Priority: UP > DOWN
#
#Available fields:
#OWN = The player must own the plot to trade with a shop.
#MODIFY = The player must have the ability to build on the target plot to trade with a shop.
#SHOPTYPE = The player must trade with the shop on a SHOP type plot.
trade: [ ]

Essentials 修补

Because Essentials use username to lookup user account if API calls is username based.

But it lead to a problem that QuickShop-Hikari always use UUID, and generate offline UUID by use Bukkit API with Standard Offline UUID Generate algorithm.

This causes Towny and QuickShop Hikari to use accounts with the same name but different UUIDs, and leads to a series of problems.

You can adjust the option in configuration to enable workaround.

NOTE: It will force turned on if detected EssentialsX installed on your server.
At present, we do not provide a method for disable it.

#Workaround for username issue
workaround-for-account-name: false