VoteKick
一个民主投票系统,允许玩家通过简洁、公平的投票流程共同将破坏性玩家从服务器中移除。
功能
- 简单的投票界面 - 不引人注目的用户界面,支持 F1/F2 快捷键或聊天命令
- 防滥用保护 - 通过冷却时间和免疫期防止骚扰和投票刷屏
- 可配置的客户端 UI - 可调整缩放、位置和视觉选项
- 实时投票追踪 - 动态进度条和投票计数
- 灵活的配置 - 丰富的服务器端设置,用于精细调整
使用方法
发起投票
/votekick <玩家> <理由>
/vk <玩家> <理由>
进行投票
- 按 F1 投 YES(踢出玩家)
- 按 F2 投 NO(保留玩家)
- 命令:
/vote yes或/vote no
查看状态
/vote status
管理员命令
/votekick-admin cancel
/votekick-admin force
/votekick-admin reload
/votekick-admin history [page]
需要 votekick.admin 权限(或在 permissions_admin_default_level 中配置的管理员等级)。
cancel 结束当前投票但不踢出玩家;force 强制使投票通过。
配置
服务器配置
位于 config/votekick.properties:
# 基本设置
vote_duration_seconds=30
vote_pass_percentage=0.6
minimum_players=2
cooldown_seconds=120
# 防护系统
new_player_protection_enabled=true
post_kick_protection_enabled=true
harassment_detection_enabled=true
vote_threshold_modifiers_enabled=true
# 自定义选项
require_kick_reason=true
allow_self_voting=false
# 权限(默认操作者等级)
permissions_enabled=true
permissions_start_default_level=0
permissions_vote_default_level=0
permissions_admin_default_level=2
permissions_exempt_default_level=2
投票历史
vote_history_enabled=true vote_history_max_entries=200 vote_history_retention_days=90
客户端配置
通过以下方式自定义你的投票体验:
- ModMenu 集成 - 图形化配置界面
- 属性文件 -
config/votekick-client.properties用于手动编辑
选项包括 UI 缩放、面板位置、声音控制和动画设置。
权限
权限节点:
votekick.start— 允许发起投票votekick.vote— 允许进行投票votekick.admin— 允许使用管理命令votekick.exempt— 豁免玩家被踢出投票
默认值由服务器配置文件中的 permissions_*_default_level 控制(0 = 所有人,2 = 管理员)。
如果存在权限 API(Fabric Permissions API 或 Fabric/NeoForge 上的 LuckPerms),则检查上述节点;
否则应用默认值。
LuckPerms 设置
- Fabric:在服务器上安装
LuckPerms和fabric-permissions-api。 - NeoForge:在服务器上安装
LuckPerms。
授予示例:
/lp group default permission set votekick.start true
/lp group default permission set votekick.vote true
/lp group mod permission set votekick.admin true
/lp group mod permission set votekick.exempt true
投票历史
历史记录存储在 config/votekick_history.json 中,并遵循保留期/最大条目限制。
防滥用功能
- 新玩家保护 - 为首次加入的玩家提供宽限期
- 踢出后免疫 - 被踢出后的临时保护
- 骚扰检测 - 对反复成为目标的玩家提供自动保护
- 投票冷却 - 防止刷屏投票和目标骚扰
- 阈值修正 - 对频繁被踢出的玩家需要更多票数才能执行踢出
要求
- Fabric:需要 Fabric API(必需),ModMenu(可选,用于 GUI 配置)
- NeoForge:无额外依赖项
- 必须同时安装在客户端和服务端上
默认行为
- 服务器管理员和拥有权限等级 2+ 的玩家不受投票踢出限制。
- 其他所有玩家均可参与投票(除非受到保护)。
兼容性
- Minecraft 1.20.1(仅限 Fabric)
- Minecraft 1.20.4、1.20.6、1.21.1、1.21.4(Fabric + NeoForge)
VoteKick
A democratic voting system that allows players to collectively remove disruptive players from the server through a clean, fair voting process.
Features
- Simple Voting Interface - Unobtrusive UI with F1/F2 keybinds or chat commands
- Anti-Abuse Protection - Prevents harassment and vote spam with cooldowns and immunity periods
- Configurable Client UI - Adjustable scaling, positioning, and visual options
- Real-time Vote Tracking - Live progress bars and vote counts
- Flexible Configuration - Extensive server-side settings for fine-tuning
Usage
Starting a Vote
/votekick <player> <reason>
/vk <player> <reason>
Voting
- Press F1 for YES (kick player)
- Press F2 for NO (keep player)
- Commands:
/vote yesor/vote no
Status
/vote status
Admin Commands
/votekick-admin cancel
/votekick-admin force
/votekick-admin reload
/votekick-admin history [page]
Requires the votekick.admin permission (or op level configured in permissions_admin_default_level).
cancel ends the active vote without a kick; force ends it as passed.
Configuration
Server Configuration
Located in config/votekick.properties:
# Basic Settings
vote_duration_seconds=30
vote_pass_percentage=0.6
minimum_players=2
cooldown_seconds=120
# Protection System
new_player_protection_enabled=true
post_kick_protection_enabled=true
harassment_detection_enabled=true
vote_threshold_modifiers_enabled=true
# Customization
require_kick_reason=true
allow_self_voting=false
# Permissions (default op levels)
permissions_enabled=true
permissions_start_default_level=0
permissions_vote_default_level=0
permissions_admin_default_level=2
permissions_exempt_default_level=2
# Vote History
vote_history_enabled=true
vote_history_max_entries=200
vote_history_retention_days=90
Client Configuration
Customize your voting experience through:
- ModMenu Integration - Graphical configuration screen
- Properties File -
config/votekick-client.propertiesfor manual editing
Options include UI scaling, panel positioning, sound controls, and animation settings.
Permissions
Permission nodes:
votekick.start— allow starting votesvotekick.vote— allow casting votesvotekick.admin— allow admin commandsvotekick.exempt— exempt a player from being vote-kicked
Defaults are controlled by permissions_*_default_level in the server config (0 = all, 2 = ops).
If a permissions API is present (Fabric Permissions API or LuckPerms on Fabric/NeoForge), the nodes above are checked;
otherwise the defaults apply.
LuckPerms setup
- Fabric: install
LuckPermsandfabric-permissions-apion the server. - NeoForge: install
LuckPermson the server.
Example grants:
/lp group default permission set votekick.start true
/lp group default permission set votekick.vote true
/lp group mod permission set votekick.admin true
/lp group mod permission set votekick.exempt true
Vote History
History is stored in config/votekick_history.json and follows the retention/max entry limits.
Anti-Abuse Features
- New Player Protection - Grace period for first-time joiners
- Post-Kick Immunity - Temporary protection after being kicked
- Harassment Detection - Automatic protection for repeatedly targeted players
- Vote Cooldowns - Prevents spam voting and target harassment
- Threshold Modifiers - Requires more votes to kick frequently kicked players
Requirements
- Fabric: Fabric API (required), ModMenu (optional for GUI configuration)
- NeoForge: no extra dependencies
- Must be installed on both client and server
Default Behavior
- Server operators and players with permission level 2+ are exempt from being vote-kicked.
- All other players can participate in voting (unless protected).
Compatibility
- Minecraft 1.20.1 (Fabric only)
- Minecraft 1.20.4, 1.20.6, 1.21.1, 1.21.4 (Fabric + NeoForge)
下载 VoteKick
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 VoteKick
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 VoteKick
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 VoteKick
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 VoteKick
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 VoteKick
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 VoteKick
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 VoteKick
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 VoteKick
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 VoteKick
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
3.0.0
新增
- 权限节点,支持为 start/vote/admin/exempt 配置默认的操作者(op)等级回退值。
- 可选的 LuckPerms 权限桥接,适用于 Fabric 和 NeoForge。
- 管理员命令,用于取消投票、强制投票、重载配置以及查看投票历史。
- 专用的
/votekick-admin命令入口点。 - 持久化的投票历史记录,支持保留时长和最大条目数限制。
- 更新了权限、管理员控制及历史记录的配置默认值和文档说明。
安全
- 当外部集成出错时,权限检查现在会采用“失败关闭”(fail closed)策略。
- 网络负载字符串读取已限制长度,以防止分配过大的内存空间。
- 对投票理由进行清理,以阻止在聊天/用户界面/历史记录中出现控制字符或格式注入。
- 针对 CastVote 数据包实施了基于玩家个体的速率限制器。
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
在游戏画面角落显示附近世界地形、玩家、生物和实体的地图。可创建路径点,帮助你找到标记过的位置。
模组
使用 JavaScript 编辑配方、添加自定义物品、编写世界事件!
模组
查看物品与配方
模组
AE2:一款流行的自动化与存储模组
模组
那是什么?一个 Waila/Hwyla 的分支。
评论 0
登录后参与评分
还没有评论,来抢沙发吧