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 yes or /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.properties for manual editing
Options include UI scaling, panel positioning, sound controls, and animation settings.
Permissions
Permission nodes:
votekick.start — allow starting votes
votekick.vote — allow casting votes
votekick.admin — allow admin commands
votekick.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
LuckPerms and fabric-permissions-api on the server.
- NeoForge: install
LuckPerms on 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)
评论 0
登录后参与评分
还没有评论,来抢沙发吧