此插件为 Factions 添加了类似公会银行的功能。
它允许派系成员创建并打开虚拟箱子,以存储供整个派系使用的物品。
此插件目前处于 Beta 测试阶段。在后续版本中,插件保存库存的方式将会有一些变化。因此,当前版本生成的数据库将不兼容未来版本。建议仅使用可用版本进行测试。
随着 0.4 Beta 版本的发布,数据库格式近期不会再发生变化。
经过充分的测试和反馈后,0.4 Beta 版本将被提升为正式发布状态。
依赖项
命令
- /f listchests - 列出所有对你可用的箱子
- /f addchest <name> [access=M] - 添加一个名为 <name> 的虚拟派系箱子,并设置访问权限 access(默认为 M)
- /f openchest <name> - 打开由 <name> 标识的箱子
- /f chestaccess <name> - 更改箱子 <name> 的访问模式,可在 M(所有成员)和 S(仅限军官及以上)之间切换
基于等级的箱子访问权限
从 0.4 Beta 版本开始,所有箱子均具有基于等级的访问策略:
配置 (于 0.3 Beta 引入)
(0.4 Beta 的默认 config.yml: )
# 配置选项说明及默认值
# --------------------------------------
# useVault: true
# true = 尝试启用 Vault
# false = 不使用 Vault,即使它可用
# --------------------------------------
# useEconomy: true
# true = 使用 Vault 的经济系统(useVault 必须为 true)
# false = 不使用经济系统,即使它可用#
# --------------------------------------
# usePermissions: true
# true = 使用 Vault 的权限系统(useVault 必须为 true)
# false = 不使用权限系统,即使它可用
# --------------------------------------
# chesttitle: Faction Chest
# 设置虚拟箱子的标题
# 游戏内显示:"FCVC - <chest title> - <chest name>"
# --------------------------------------
# chestslots: 54
# 新创建的箱子拥有的槽位数量
# 必须是 9 的倍数,否则将使用默认值 54
# --------------------------------------
# chestprice: 50
# 玩家想要创建新箱子时需支付的价格
# --------------------------------------
# maxchests: 5
# 派系最多可拥有的箱子数量
# --------------------------------------
# 配置:
useVault: true
useEconomy: true
usePermissions: true
chesttitle: Faction Chest
chestslots: 54
chestprice: 50
maxchests: 5
权限
- FactionsChests.open - 允许使用 /f openchest
- FactionsChests.add - 允许使用 /f addchest
- FactionsChests.access - 允许使用 /f chestaccess
- FactionsChests.list - 允许使用 /f listchests
更多信息
- 箱子与派系绑定(而非标签绑定),因此即使派系名称更改,箱子仍会保留在该派系中。
- 箱子的内容会在关闭时以及服务器关闭时保存(自 0.3 Beta 起)。
- 箱子名称限制为 10 个字符(自 0.3 Beta 起)。
- /f chestaccess 命令仅可由派系军官及以上职位使用(拥有 FactionsChests.access 权限的普通派系成员无法使用该命令)。
待办事项
添加 Vault 支持
添加权限支持
实现创建新箱子的费用功能
添加配置选项(箱子价格、槽位数等)
添加基于等级依赖的箱子(成员箱子和军官 & 管理员箱子)
- 欢迎提供新想法
更新日志
2012.08.10 v0.4
- Added permission support
- Added chest access control based on faction ranks
- Added /f chestaccess command
- Added configurable maximum number of chests per faction
- Minor modifications
2012.08.09 v0.3
- 添加了 Vault 支持 (经济系统)
- 添加了 配置选项
- 添加了 箱子价格
- 所有 箱子 现在 会在 服务器 关闭时 进行保存 (仅限 正常关闭!) 以防止因打开的虚拟箱子导致物品丢失或复制
- 箱子 名称 现在 限制 为 10 个字符
- 移除了一些 调试 代码
- 进行了小幅修改
09.08.2012 v0.2
- 修复了 旧 势力's 箱子 在 新 势力 创建 后 仍可 访问 的 严重 问题 (ID 问题)
- 移除 了 一些 调试 代码
09.08.2012 v0.1
- 初始版本发布
This plugin adds a kind of Guild Bank functionality to Factions.
It allows faction members to create and open virtual chests to store items faction-wide.
This plugin is in Beta status. There will be some changes in how the plugin saves the inventories in the next versions.
Because of this, databases produced by the current versions will not be compatible with future versions.
I recommend that you use the available versions for testing purposes only.
With the release of version 0.4 Beta the database won't change again anytime soon.
After enough testing and feedback 0.4 Beta will be promoted to release status.
Dependencies
Commands
- /f listchests - lists all available chests to you
- /f addchest <name> [access=M] - adds a virtual faction chest with the name <name> and the access permission access (default M)
- /f openchest <name> - opens the chest identified by <name>
- /f chestaccess <name> - changes the access mode of the chest <name> between M (all members) and S (officers and above only)
Rank-based chest access
Starting in version 0.4 Beta all chests have rank-based access policies:
- S (officers and above only)
Configuration (introduced in 0.3 Beta)
(default config.yml from 0.4 Beta: )
# configuration option descriptions and default values
# --------------------------------------
# useVault: true
# true = try to enable Vault
# false = do not use Vault, even if it is available
# --------------------------------------
# useEconomy: true
# true = use Vault's economy (use Vault has to be true)
# false = do not use economy, even if it is available#
# --------------------------------------
# usePermissions: true
# true = use Vault's permissions (use Vault has to be true)
# false = do not use permissions, even if it is available
# --------------------------------------
# chesttitle: Faction Chest
# sets the title of the virtual chests
# in-game display: "FCVC - <chest title> - <chest name>"
# --------------------------------------
# chestslots: 54
# the number of slots a newly created chest has
# must be a multiple of 9 or the default of 54 will be used
# --------------------------------------
# chestprice: 50
# the price a player has to pay when he wants to create a new chest
# --------------------------------------
# maxchests: 5
# the maximum number of chests a faction can have
# --------------------------------------
# Configuration:
useVault: true
useEconomy: true
usePermissions: true
chesttitle: Faction Chest
chestslots: 54
chestprice: 50
maxchests: 5
Permissions
- FactionsChests.open - allows usage of /f openchest
- FactionsChests.add - allows usage of /f addchest
- FactionsChests.access - allows usage of /f chestaccess
- FactionsChests.list - allows usage of /f listchests
More Info
- The chests are faction bound (not tag bound) so they will stay with the faction even when the name changes.
- It is not possible for two or more players to access the same chest simultaneously.
- The chest's content is saved whenever it is closed and when the server is shut down (as of 0.3 Beta).
- Chest names are limited to 10 characters (as of 0.3 Beta).
- The /f chestaccess command is only usable by faction officers and above (normal faction members with the permission FactionsChests.access are not able to use the command).
To-do
Add Vault support
Add Permissions
Implement price for creating new chests
Add configuration options (chest price, slots, etc.)
Add rank-dependend chests (member chests and officer & admin chests)
- Open for new ideas
Changelog
10.08.2012 v0.4
- Added permission support
- Added chest access control based on faction ranks
- Added /f chestaccess command
- Added configurable maximum number of chests per faction
- Minor modifications
09.08.2012 v0.3
- Added Vault support (economy)
- Added configuration options
- Added chest price
- All chests are now saved when the server shuts down (clean shutdown only!) to prevent item loss or duplication because of open virtual chests
- Chest names are now limited to 10 characters
- Removed some debug code
- Minor modifications
09.08.2012 v0.2
- Fixed major issue with an old faction's chests beeing accessible from a newly created faction after the old one was disbanded (id issue)
- Removed some debug code
09.08.2012 v0.1
- Initial release
评论 0
登录后参与评分
还没有评论,来抢沙发吧