社区领袖
Community Leaders 是一款适用于 Minecraft Fabric 的模组,旨在帮助 服务器管理员 将社区管理权限委托给值得信赖的 社区领袖。服务器管理员可以向主播、内容创作者或社区经理授予邀请权限,使他们能够在服务器上管理自己的社区,并将 Moderation(版主/管理)任务委派给他们信任的成员。
概念
该模组创建了一个 三级管理层级结构:
- 服务器管理员 → 向值得信赖的社区领袖授予邀请权限
- 社区领袖 → 管理其社区成员并指派版主
- 版主 → 协助领袖通过被委派的权限来管理他们的社区
此系统允许服务器管理员通过赋能受信任的领袖来扩展社区管理能力,同时保持监督和控制权。
功能
行政委托
- 基于权限的领导层:管理员向值得信赖的社区领袖授予
communityleaders.invite 权限
- 自主社区管理:领袖可以独立邀请和管理其社区成员
- 可扩展的服务器增长:支持在单个服务器上运行多个社区,无需管理员进行微观管理
- 保持监督:所有操作都会被记录,并可由服务器管理员进行审核
社区管理
- 个性化邀请:社区领袖可以邀请他们的粉丝、订阅者或社区成员
- 集成白名单系统:自动为被邀请的玩家管理服务器白名单
- 邀请限制:每个领袖可配置的邀请上限(管理员拥有覆盖能力)
- 成员生命周期管理:全面控制社区成员的邀请、移除和封禁
管理委托
- 受信任的版主系统:领袖可以将权限委派给值得信赖的社区成员
- 层级管理:版主代表其指定的领袖行事
- 自动验证:系统确保版主不会获得冲突的权限
- 灵活委托:随着社区的发展,领袖可以随时添加/移除版主
高级管理工具
- 邀请树可视化:服务器管理员可以查看完整的社区结构
- 数据一致性监控:自动验证和清理权限关系
- 实时同步:与 LuckPerms 集成以实现即时权限更新
- 命令自定义:用于服务器品牌化的可配置别名和消息
安全性和权限
- LuckPerms 集成:利用企业级权限管理
- 细粒度访问控制:针对每个管理层级的精细调整权限
- 自动验证:实时验证权限和关系
- 一致性执行:当权限更改时,自动清理无效数据
要求
- Minecraft: 版本 1.20.1
- Fabric Loader: 版本 0.16.14+
- Fabric API: 版本 0.92.6+1.20.1
- LuckPerms: 版本 5.4+(权限管理必需)
安装
-
下载依赖项:
-
安装模组:
- 将
CommunityLeaders-1.x.x.jar 文件放入 mods/ 文件夹
- 同时将 LuckPerms 放入
mods/ 文件夹
-
启动服务器:
- 模组将在首次启动时自动配置自身
- 配置文件将在
config/communityleaders/ 中创建
设置指南
1. 创建组
在 LuckPerms 中设置不同层级的社区领袖:
# 创建社区领袖组
/lp creategroup streamer
/lp creategroup trusted_streamer
# 基本社区领袖权限
/lp group streamer permission set communityleaders.invite true
/lp group streamer permission set communityleaders.ban true
/lp group streamer permission set communityleaders.moderator true
# 高级领袖获得更多额外权限
/lp group trusted_streamer parent add streamer
/lp group trusted_streamer permission set communityleaders.tree true
/lp group trusted_streamer permission set communityleaders.unlimited true
# 将领导权分配给受信任的成员
/lp user <streamer_name> parent add streamer
/lp user <premium_creator> parent add trusted_streamer
2. 管理员权限
为了完全掌控服务器,管理员应拥有所有权限。服务器操作员自动拥有完全访问权限,但您可以为管理员组显式设置权限:
# 授予管理员完全访问权限(可选——管理员通常已拥有 * 权限)
/lp group admin permission set communityleaders.* true
可用权限
该模组提供细粒度的权限,可以单独分配:
communityleaders.invite
- 允许通过
/cl invite 邀请玩家加入服务器
- 允许通过
/cl uninvite 取消你邀请的玩家的资格
- 允许通过
/cl list 查看你的邀请列表
- 受邀请限制约束(除非也授予了
communityleaders.unlimited)
communityleaders.ban
- 允许通过
/cl ban 永久封禁你邀请的玩家
- 被封禁的玩家将被断开连接、添加到服务器封禁列表并从白名单中移除
- 只能封禁你自己亲自邀请的玩家
communityleaders.tree
- 允许通过
/cl tree 查看完整的服务器邀请结构
- 显示所有领袖及其邀请的社区
- 对服务器管理员和高级社区领袖非常有用
communityleaders.moderator
- 允许通过
/cl mod add/remove/list 管理版主
- 可以将被邀请的玩家提升为版主状态
- 版主可以代表其指定的领袖使用领袖命令
- 包含自动验证以防止权限冲突
communityleaders.unlimited
- 绕过配置中设置的邀请数量限制
- 无论
max_invitations_per_leader 设置如何,均允许无限邀请
- 通常授予受信任的高级社区领袖或服务器工作人员
权限组合:
- 基础社区领袖:
communityleaders.invite + communityleaders.ban
- 高级社区领袖:添加
communityleaders.moderator
- 高级(Premium)社区领袖:添加
communityleaders.tree + communityleaders.unlimited
- 服务器管理员:授予所有权限或使用通配符
communityleaders.*
服务器配置
config/communityleaders/config.yml 文件允许进行服务器范围的自定义设置:
# Community Leaders Configuration
# Administrative settings for community delegation system
# Command configuration
command:
alias: "cl" # Alias for /communityleaders command (customize for your server)
社区管理限制
limits:
max_invitations_per_leader: 10 # 每位领导者默认邀请上限(-1 表示无限制)
注意:拥有 'communityleaders.unlimited' 权限的领导者可绕过此限制
服务器品牌化 - 自定义所有消息
messages:
自定义所有消息以匹配服务器的语气和语言
invite_success: "欢迎来到我们的社区!'%player%' 已被其社区领袖邀请加入。"
ban_reason: "违反社区准则 - 被社区领袖封禁。"
...(所有其他消息均可自定义)
## 社区领袖使用说明
社区领袖使用此模组在服务器内管理自己的社区:
### 核心管理命令
该模组提供两种命令格式:
- 完整命令:`/communityleaders <子命令>`
- 服务器别名:`/cl <子命令>`(可由管理员配置)
#### 成员邀请与管理
- `/cl invite <玩家>` - 邀请社区成员加入服务器
- `/cl uninvite <玩家>` - 移除你已邀请的社区成员
- `/cl ban <玩家>` - 永久封禁你已邀请的社区成员
- `/cl list` - 查看你已邀请至服务器的所有成员
#### 管理权限委托
- `/cl mod add <player>` - 将受邀成员提升为社区管理员
- `/cl mod remove <player>` - 移除成员的管理员权限
- `/cl mod list` - 查看当前所有管理员
#### 社区概览
- `/cl tree` - 查看完整的社区结构
### 管理运作方式
1. **首领使用 `/cl invite` 邀请社区成员**
2. **首领使用 `/cl mod add` 将信任的成员提升为管理员**
3. **管理员随后可以使用相同的命令管理首领的社区**
4. **所有操作均归属于首领,以便进行行政追踪**
## 管理工具
### 监控社区发展
服务器管理员可以监控社区的发展:
```bash
# 查看完整的服务器社区结构
/cl tree
数据存储与备份
该模组将社区数据存储在 JSON 文件中,以便于管理:
config/communityleaders/config.yml - 服务器配置
config/communityleaders/invites.json - 社区邀请关系
config/communityleaders/moderators.json - 管理委托结构
管理员提示:定期备份这些文件以保留社区结构。
数据完整性管理
该模组自动维护数据完整性:
- 权限同步:当首领失去权限时,其社区将被清理
- 管理验证:获得首领权限的管理员将被自动处理
- 实时更新:通过 LuckPerms 进行的更改会立即反映在社区结构中
- 启动验证:每次服务器重启时进行全面一致性检查
故障排除
常见设置问题
-
“未找到 LuckPerms”警告:
- 确保 LuckPerms 在 Community Leaders 之前加载
- 验证 LuckPerms 是否正确配置
-
社区首领无法使用命令:
- 检查 LuckPerms 权限分配:
/lp user <leader> permission check communityleaders.invite
- 验证组继承:
/lp user <leader> info
-
白名单集成问题:
- 启用服务器白名单以获得最佳效果:
/whitelist on
- 该模组会自动管理受邀玩家的白名单条目
许可证
本项目基于 AGPL-3.0 许可证授权。
作者
DrEmixam - 主要开发者
支持
如需服务器设置协助或提交错误报告,请在项目仓库中创建 issue。
Community Leaders
Community Leaders is a Minecraft Fabric mod designed to help server administrators delegate community management to trusted community leaders. Server admins can grant invitation permissions to streamers, content creators, or community managers, who can then manage their own communities on the server and delegate moderation tasks to their trusted members.
Concept
The mod creates a three-tier management hierarchy:
- Server Administrators → Grant invitation permissions to trusted community leaders
- Community Leaders → Manage their own community members and assign moderators
- Moderators → Help leaders manage their communities with delegated permissions
This system allows server admins to scale their community management by empowering trusted leaders while maintaining oversight and control.
Features
Administrative Delegation
- Permission-based leadership: Admins grant
communityleaders.invite permission to trusted community leaders
- Autonomous community management: Leaders can independently invite and manage their community members
- Scalable server growth: Support multiple communities on a single server without admin micromanagement
- Maintained oversight: All actions are tracked and can be audited by server administrators
Community Management
- Personalized invitations: Community leaders can invite their followers, subscribers, or community members
- Integrated whitelist system: Automatically manages server whitelist for invited players
- Invitation limits: Configurable limits per leader (with admin override capability)
- Member lifecycle management: Full control over invitation, removal, and banning of community members
Moderation Delegation
- Trusted moderator system: Leaders can delegate permissions to trusted community members
- Hierarchical management: Moderators act on behalf of their assigned leader
- Automatic validation: System ensures moderators don't gain conflicting permissions
- Flexible delegation: Leaders can add/remove moderators as their community evolves
Advanced Administrative Tools
- Invitation tree visualization: Server admins can view the complete community structure
- Data consistency monitoring: Automatic validation and cleanup of permission relationships
- Real-time synchronization: Integration with LuckPerms for instant permission updates
- Command customization: Configurable aliases and messages for server branding
Security and Permissions
- LuckPerms integration: Leverages enterprise-grade permission management
- Granular access control: Fine-tuned permissions for each management level
- Automatic validation: Real-time verification of permissions and relationships
- Consistency enforcement: Automatic cleanup of invalid data when permissions change
Requirements
- Minecraft: Version 1.20.1
- Fabric Loader: Version 0.16.14+
- Fabric API: Version 0.92.6+1.20.1
- LuckPerms: Version 5.4+ (Required for permission management)
Installation
-
Download dependencies:
-
Install the mod:
- Place the
CommunityLeaders-1.x.x.jar file in the mods/ folder
- Also place LuckPerms in the
mods/ folder
-
Start the server:
- The mod will configure itself automatically on first startup
- Configuration files will be created in
config/communityleaders/
Setup Guide
1. Create Groups
Set up different tiers of community leaders in LuckPerms:
# Create community leader groups
/lp creategroup streamer
/lp creategroup trusted_streamer
# Basic community leader permissions
/lp group streamer permission set communityleaders.invite true
/lp group streamer permission set communityleaders.ban true
/lp group streamer permission set communityleaders.moderator true
# Premium leaders get additional perms
/lp group trusted_streamer parent add streamer
/lp group trusted_streamer permission set communityleaders.tree true
/lp group trusted_streamer permission set communityleaders.unlimited true
# Assign leadership to trusted members
/lp user <streamer_name> parent add streamer
/lp user <premium_creator> parent add trusted_streamer
2. Admin Permissions
For full server oversight, admins should have all permissions. Server operators automatically have full access, but you can explicitly set permissions for the admin group:
# Grant admin full access (optional - admins usually have * permission)
/lp group admin permission set communityleaders.* true
Available Permissions
The mod provides granular permissions that can be assigned individually:
communityleaders.invite
- Allows inviting players to the server via
/cl invite
- Allows uninviting players you invited via
/cl uninvite
- Allows viewing your invitation list via
/cl list
- Subject to invitation limits (unless
communityleaders.unlimited is also granted)
communityleaders.ban
- Allows permanently banning players you invited via
/cl ban
- Banned players are disconnected, added to server ban list, and removed from whitelist
- Can only ban players you personally invited
communityleaders.tree
- Allows viewing the complete server invitation structure via
/cl tree
- Shows all leaders and their invited communities
- Useful for server administrators and premium community leaders
communityleaders.moderator
- Allows managing moderators via
/cl mod add/remove/list
- Can promote invited players to moderator status
- Moderators can use leader commands on behalf of their assigned leader
- Includes automatic validation to prevent permission conflicts
communityleaders.unlimited
- Bypasses invitation limits set in configuration
- Allows unlimited invitations regardless of
max_invitations_per_leader setting
- Typically granted to trusted premium leaders or server staff
Permission Combinations:
- Basic Community Leader:
communityleaders.invite + communityleaders.ban
- Advanced Community Leader: Add
communityleaders.moderator
- Premium Community Leader: Add
communityleaders.tree + communityleaders.unlimited
- Server Administrator: Grant all permissions or use wildcard
communityleaders.*
Server Configuration
The config/communityleaders/config.yml file allows server-wide customization:
# Community Leaders Configuration
# Administrative settings for community delegation system
# Command configuration
command:
alias: "cl" # Alias for /communityleaders command (customize for your server)
# Community management limits
limits:
max_invitations_per_leader: 10 # Default limit per leader (-1 for unlimited)
# Note: Leaders with 'communityleaders.unlimited' permission bypass this limit
# Server branding - customize all messages
messages:
# Customize all messages to match your server's tone and language
invite_success: "Welcome to our community! '%player%' has been invited by their community leader."
ban_reason: "Community guidelines violation - banned by community leader."
# ... (all other messages can be customized)
Usage for Community Leaders
Community leaders use the mod to manage their own communities within the server:
Core Management Commands
The mod provides two command formats:
- Full command:
/communityleaders <subcommand>
- Server alias:
/cl <subcommand> (configurable by admins)
Member Invitation and Management
/cl invite <player> - Invite a community member to the server
/cl uninvite <player> - Remove a community member you invited
/cl ban <player> - Permanently ban a community member you invited
/cl list - View all members you've invited to the server
Moderation Delegation
/cl mod add <player> - Promote an invited member to moderator for your community
/cl mod remove <player> - Remove moderator status from a member
/cl mod list - View all your current moderators
Community Overview
/cl tree - View the complete community structure
How Moderation Works
- Leader invites community members using
/cl invite
- Leader promotes trusted members to moderators using
/cl mod add
- Moderators can then manage the leader's community using the same commands
- All actions are attributed to the leader for administrative tracking
Administrative Tools
Monitoring Community Growth
Server administrators can monitor community development:
# View complete server community structure
/cl tree
Data Storage and Backup
The mod stores community data in JSON files for easy administration:
config/communityleaders/config.yml - Server configuration
config/communityleaders/invites.json - Community invitation relationships
config/communityleaders/moderators.json - Moderation delegation structure
Admin Tip: Regularly backup these files to preserve community structures.
Data Integrity Management
The mod automatically maintains data integrity:
- Permission synchronization: When leaders lose permissions, their communities are cleaned up
- Moderation validation: Moderators who gain leader permissions are automatically managed
- Real-time updates: Changes via LuckPerms are immediately reflected in community structures
- Startup validation: Complete consistency check on each server restart
Troubleshooting
Common Setup Issues
-
"LuckPerms not found" warning:
- Ensure LuckPerms loads before Community Leaders
- Verify LuckPerms is properly configured
-
Community leaders can't use commands:
- Check LuckPerms permission assignments:
/lp user <leader> permission check communityleaders.invite
- Verify group inheritance:
/lp user <leader> info
-
Whitelist integration issues:
- Enable server whitelist for best results:
/whitelist on
- The mod automatically manages whitelist entries for invited players
License
This project is licensed under AGPL-3.0.
Author
DrEmixam - Main developer
Support
For server setup assistance or bug reports, create an issue on the project repository.
评论 0
登录后参与评分
还没有评论,来抢沙发吧