
源码 | 更新日志 | 功能请求 | 错误报告 | 捐赠
最新版本:v1.0(适用于 Bukkit 1.7+)
关于
FactionsDB,又名 FactionsDeathBans,旨在为使用 Factions 插件的服务器增加玩家死亡和力量值损失的重要性。当玩家的死亡导致其力量值降至设定阈值以下时,他们将被暂时封禁(DeathBanned)无法加入服务器。这也有效防止了诸如玩家在出生点被反复击杀或玩家为了奖励(例如 McMMO 中的技能等级)而互相反复击杀等滥用行为。
注意:此插件需要 Factions v2.0 或更高版本。
功能
- 可配置的力量值阈值
- 从死亡封禁返回后可配置的力量值加成
- 死亡封禁时长完全可配置
- 死亡封禁期间可将玩家传送至世界出生点(出于安全考虑)
- 死亡封禁拥有可配置的踢出消息、登录失败提示、全服广播以及解封返回消息。支持颜色代码和多种替换标签。
- 可启用/禁用全服广播
- 完全兼容 UUID
- 如果启用了持久化存储,可以跨服务器重启追踪死亡封禁记录
安装
- 下载 FactionsDB jar 文件。
- 将其移动/复制到服务器的
plugins 文件夹中。
- 重启服务器。
- [可选] 授予特定用户权限(见下文)。
权限
FactionsDB 拥有以下权限节点:
-
factionsdb.admin - 管理员权限。默认:op。包含:
factionsdb.command.factionsdb: true(允许使用 /factionsdb 命令)
factionsdb.ban.exempt: true(防止用户被死亡封禁)
-
factionsdb.defaults - 默认用户权限。默认:true。包含:
factionsdb.ban.exempt: false(允许用户被死亡封禁)
命令
FactionsDB 仅有一个命令:/factionsdb(别名:/fdb)
/factionsdb - 显示插件使用说明信息
/factionsdb list - 显示现有的死亡封禁列表
-
/factionsdb pardon <name|*>... - 解除一个或多个玩家的死亡封禁
/factionsdb reload - 从磁盘重新加载配置文件
配置
配置文件位于插件文件夹内:plugins/FactionsDB
以下配置选项已包含在 config.yml 中并附有文档说明:
uuid-mode: (布尔值, 使用 UUID 而非名称来追踪封禁)
persistence: (布尔值, 定期保存封禁记录并在启动时重新加载)
(仅在服务器关闭时应修改此项!)
power:
threshold: (数字, 触发死亡封禁的力量值阈值)
boost: (数字, 从封禁返回后给予玩家的力量值加成)
ban:
broadcast: (布尔值, 是否向全服广播封禁信息)
duration: (字符串, 封禁时长,格式为 "<#[.#]><s|m|h|d>")
send-to-spawn: (布尔值, 在死亡封禁前将玩家传送至出生点)
spawn-world: (字符串, 玩家重生所在的世界名称)
(若留空,玩家将在当前世界重生)
strings:
kick: (字符串, 玩家被死亡封禁时发送的消息)
login: (字符串, 死亡封禁阻止玩家加入服务器时的消息)
broadcast: (字符串, 发生死亡封禁时向全服广播的消息)
return: (字符串, 发送给从死亡封禁返回的玩家的欢迎消息)
上述字符串接受 '&' 风格的颜色代码,并支持替换以下标签:
{0} --> 玩家名称
{1} --> 封禁时长
{2} --> 力量值阈值
{3} --> 剩余时间
{4} --> 力量值加成
启用持久化后,死亡封禁将保存为 bans.yml。不建议手动编辑此文件,尤其是在服务器运行时。
错误/请求
此模板经过持续测试以确保其正确性,但有时仍可能出现漏洞。如果您在项目中发现任何 bug 或有功能建议,请在 GitHub 上创建 Issue。
捐赠
如果您认为该项目对您的服务器有用,捐赠是感谢开发者的绝佳方式,也能鼓励开发者继续制作更多完全免费且开源的插件。如果您希望捐赠(任意金额),页面右上角有一个易于访问的链接。谢谢!
隐私
此项目模板使用了 Hidendra 的 Plugin-Metrics 系统。用户可以通过编辑位于 plugins/Plugin Metrics 中的配置文件来选择不加入此项服务。以下匿名数据将被收集并发送至 mcstats.org:
- 唯一标识符
- 服务器的 Java 版本
- 服务器是否处于在线模式或离线模式
- 插件版本
- 服务器版本
- 操作系统版本、名称及架构
- CPU 核心数
- 在线玩家数量
- Metrics 版本
许可证
此模板作为免费开源项目发布,遵循 GNU 通用公共许可证第 3 版 (GPLv3)。要了解这具体意味着什么,请点击该链接或 在 Wikipedia 上阅读相关内容。

Source | Change Log | Feature Request | Bug Report | Donate
Latest Version: v1.0 for Bukkit 1.7+
About
FactionsDB, also known as FactionsDeathBans, is designed to add extra importance to player deaths and power loss on servers using the Factions plugin. Players whose deaths cause them to fall below a desired power level will be temporarily banned (DeathBanned) from joining the server. This is also effective at preventing continued abuse such as players being repeatedly killed at their spawn location or players repeatedly killing each other for rewards (e.g. skill levels in McMMO).
Note: This plugin requires Factions v2.0 or later.
Features
- Configurable power-level threshold
- Configurable power boost upon return from a DeathBan
- DeathBan duration is fully configurable
- Players can be sent to the spawn of a world upon DeathBan (for safety)
- DeathBans have configurable messages for kicked players, failed logins, server broadcasts, and players returning from bans. Accepts color codes and several replacement tags.
- Server-wide broadcasting can be enabled/disabled
- Fully UUID-compatible
- Can track DeathBans across server restarts (if persistence is enabled)
Installation
- Download FactionsDB jar file.
- Move/copy to your server's
plugins folder.
- Restart your server.
- [Optional] Grant specific user permissions (see below).
Permissions
FactionsDB has the following permission nodes:
-
factionsdb.admin - Adminstrator permissions. Default: op. Implies:
factionsdb.command.factionsdb: true (allows use of /factionsdb)
factionsdb.ban.exempt: true (prevents user from being DeathBanned)
-
factionsdb.defaults - Default user permissions. Default: true. Implies:
factionsdb.ban.exempt: false (allows user to be DeathBanned)
Commands
FactionsDB has only one command, /factionsdb (Alias: /fdb)
/factionsdb - Show plugin usage information
/factionsdb list - Show a list of existing DeathBans
-
/factionsdb pardon <name|*>... - Pardon DeathBans for one or more players
- Note: "*" implies all players
/factionsdb reload - Reload configuration from disk
Configuration
Configuration files are located in the plugin's folder, plugins/FactionsDB
The following configuration options are included and documented in config.yml:
uuid-mode: (boolean, use UUIDs to track bans instead of names)
persistence: (boolean, periodically save bans & reload at startup)
(should only be modified while the server is off!)
power:
threshold: (number, power level where DeathBans can be given)
boost: (number, power boost given to players returning from bans)
ban:
broadcast: (boolean, should bans be broadcast server-wide)
duration: (String, length of bans in format "<#[.#]><s|m|h|d>")
send-to-spawn: (boolean, send to spawn before DeathBanning)
spawn-world: (String, name of the world to respawn players into)
(If blank, players respawned to their current world)
strings:
kick: (String, message to send to player as they get DeathBanned)
login: (String, message when DeathBan prevents joining server)
broadcast: (String, message to broadcast server-wide upon DeathBan)
return: (String, message sent to players returning from DeathBans)
The above strings accept '&' style color codes, and also replace the following tags:
{0} --> Player name
{1} --> Ban duration
{2} --> Power threshold
{3} --> Time left
{4} --> Power boost
With persistence enabled, DeathBans are saved as bans.yml. It is ill-advised to manually edit this file, especially while a server is running.
Bugs/Requests
This template is continually tested to ensure that it is correct, but sometimes bugs can sneak in. If you have found a bug within the project, or if you have a feature request, please create an issue on Github.
Donations
Donating is a great way to thank the developer if you find the project useful for your server, and encourages work on more 100% free and open-source plugins. If you would like to donate (any amount), there is an easily accessible link in the top right corner of this page. Thank you!
Privacy
This project template utilizes Hidendra's Plugin-Metrics system. Users may opt out of this service by editing their configuration located in plugins/Plugin Metrics. The following anonymous data is collected and sent to mcstats.org:
- A unique identifier
- The server's version of Java
- Whether the server is in online or offline mode
- The plugin's version
- The server's version
- The OS version, name, and architecture
- The number of CPU cores
- The number of online players
- The Metrics version
License
This template is released as a free and open-source project under the GNU General Public License version 3 (GPLv3). To learn more about what this means, click that link or read about it on Wikipedia.
评论 0
登录后参与评分
还没有评论,来抢沙发吧