hClans
具有自定义样式、进度系统和贡献奖励的氏族
名称编辑器 • 邀请 • EXP(经验值) • 排行榜 • 插件 API
关于
hClans 2.0 将玩家聚集在拥有独立身份、成员名单和成长体系的氏族中。通过物品栏编辑器创建氏族,邀请成员加入,提升等级并解锁更多成员槽位。配置所有者及达到足够 EXP 贡献值的成员的奖励,并通过 PlaceholderAPI 在菜单、TAB 列表或全息投影中显示排行榜。
插件系统允许你通过共享 API 扩展氏族功能,添加自定义命令、角色、EXP 来源以及其他机制。
创建与重命名
/clan create <name> 打开外观编辑器。玩家预览其名称并在选择样式后确认创建。所有者可以使用 /clan rename <newID> 更改现有氏族的 ID 和外观。创建和重命名拥有独立的菜单配置。
- 三色渐变。 配置调色板,让玩家在菜单中选择颜色。
- 字体与装饰。 支持标准文本、小型大写字母、粗体、斜体和下划线。通过字符替换映射表添加自定义字体变体。
- 物品栏样式。 自定义标题、大小、槽位、材质、描述、按钮及点击动作。
- 名称规则。 设置长度限制、正则表达式以及禁止使用的名称。检查重复 ID。默认允许字母、数字和下划线,长度为 3–16 个字符。
- 创建与重命名条件。 检查占位符值并在成功后执行操作。条件会在打开编辑器前以及确认时进行检查。
成员与邀请
邀请在线玩家加入你的氏族。他们可以直接从可点击的消息中接受或拒绝邀请。邀请在一定时间后过期,默认为 5 分钟。加入时会检查当前等级的成员上限。
成员可以退出氏族,而拥有相应权限的角色可以邀请或移除玩家。通过名称确认来保护氏族删除操作。所有者保持控制权:他们不能被踢出,且使用氏族删除功能而非普通的退出操作。
在 roles.yml 中配置角色的显示名称、显示顺序和内部权限。基础角色为所有者和成员;插件可以通过角色提供程序提供额外的成员角色。
等级、EXP 与奖励
在 levels.yml 中设置 EXP 阈值、成员上限和升级动作。提供的配置包含 10 个等级,成员上限从 10 到 100。请根据你的服务器调整数值。
通过管理员命令、API 或插件(如你自己的任务或事件集成)发放 EXP。通过带有贡献者信息的 API 发放的 EXP 会记录该成员的个人贡献。
- 升级动作。 宣布里程碑、执行命令并配置效果。
- 独立奖励。 给予所有者和符合条件的成员不同的奖励。
- 贡献要求。 设置固定的 EXP 阈值、相邻等级间 EXP 差距的百分比,或两者兼有。当同时设置时,适用较大的阈值。
- 持久化奖励追踪。 每个已发放奖励的氏族等级都会被记录,以防止重启或等级下降后重复发放奖励。
示例: 如果下一级需要另外 500 EXP,10% 的贡献阈值为 50 EXP。如果同时设置了 100 EXP 的固定阈值,则成员必须至少贡献了 100 EXP。
PlaceholderAPI 与排行榜
在兼容的聊天、TAB、菜单和全息插件中显示氏族详情。核心占位符包括:
%hclans_clan% — 样式化显示名称;%hclans_id% — 原始氏族 ID。
%hclans_has_clan%, %hclans_is_owner% — 氏族成员身份和所有权状态。
%hclans_owner%, %hclans_owner_uuid% — 所有者名称和 UUID。
%hclans_member_count%, %hclans_level%, %hclans_exp% — 成员数量、等级和 EXP。
%hclans_roles%, %hclans_role_ids%, %hclans_role_count% — 玩家的角色。
%hclans_invite_clan% — 有效邀请。
%hclans_top_1_display%, %hclans_top_1_exp%, %hclans_top_1_level% — 排名第一的条目;将 1 替换为所需的位置。
%hclans_top_1_members% — 排名氏族中的成员名称;%hclans_top_position% — 玩家所在氏族的排名位置。
排行榜按 EXP 然后等级排序。配置排名条目数量、成员列表分隔符、是/否输出格式,以及当玩家没有氏族时显示的值。
插件与开发者 API
从 plugins/hClans/addons 加载兼容的插件。它们可以注册 /clan 子命令、占位符、权限、额外角色以及权限解析器。
对于开发者: ClanApi 提供氏族、成员身份、邀请、等级、EXP 和贡献相关的操作。ClanDatabaseApi 暴露共享数据库访问接口,而 ClanSkullAPI 提供头颅物品。事件涵盖氏族创建、删除、邀请、加入、踢出和重命名。
配置与存储
SQLite 是默认存储方式,数据存储在 plugins/hClans/clans.db 中。也支持 MySQL、MariaDB 和 H2。在 storage.yml 中设置连接信息、表前缀和数据库选项。
消息和操作支持 MiniMessage,包括颜色、渐变、悬停文本和可点击文本。动作列表提供消息、广播、控制台或玩家命令、音效、标题、动作条、Boss 条、粒子效果和烟花。经济操作使用 Vault 及兼容的经济提供商。
内置俄语和英语模板。通用规则使用 config.yml,角色使用 roles.yml,进度系统使用 levels.yml,编辑器使用 clanCreator.yml 和 clanRename.yml,文本和动作使用 messages.yml 和 actions.yml。
命令
/clan — 显示可用的命令帮助。
/clan create <name> — 通过编辑器创建氏族。
/clan rename <newID> — 重命名并设置氏族样式;仅限所有者。
/clan invite <player> — 邀请在线玩家。
/clan accept <clan> / /clan deny <clan> — 接受或拒绝邀请。
/clan kick <member> — 移除一名成员。
/clan leave — 退出氏族。
/clan delete [clanName] — 删除氏族,若启用则需确认。
/hclans levels <clan> <operation> <amount> — 更改等级或经验值。操作包括:addlvl(添加等级)、addexp(添加经验)、removelvl(移除等级)、removeexp(移除经验)、setlevel(设置等级)、setexp(设置经验)。
/hclans reload — 重新加载配置、数据库连接和插件。
示例: /hclans levels Knights addexp 500 给予 Knights 500 点经验值。管理员权限为 hclans.levels 和 hclans.reload,默认仅对操作员开放。氏族操作使用内部角色权限。
要求与设置
Spigot、Paper 和 Folia · Minecraft 1.21+ · Java 21 最低版本,或你服务器所需的更高版本 Java。 PlaceholderAPI 和 Vault 是可选集成。
- 将 JAR 文件放入
plugins 文件夹并启动服务器。
- 在
plugins/hClans/locale.yml 中设置 locale: en 或 locale: ru。
- 运行
/hclans reload 或重启服务器以生成所选语言的文件并启动氏族功能。
- 配置存储、等级、奖励和外观。检查重命名条件:提供的模板通过 PlaceholderAPI 检查是否拥有 2500 个 PlayerPoints,并执行扣除命令;请根据你的经济系统进行调整。
- 在你的服务器界面中添加所需的占位符,并安装兼容的附加组件。
hClans
Clans with custom styling, progression, and contribution rewards
Name editor • invitations • EXP • rankings • addon API
About
hClans 2.0 brings players together in clans with their own identity, roster, and progression. Create a clan through an inventory editor, invite members, level up, and unlock more member slots. Configure rewards for the owner and members who contributed enough EXP, then display rankings in menus, TAB, or holograms through PlaceholderAPI.
The addon system lets you extend clans for your server with custom commands, roles, EXP sources, and additional mechanics through a shared API.
Creation and renaming
/clan create <name> opens the appearance editor. Players preview their name and confirm creation after choosing a style. The owner can change an existing clan's ID and appearance with /clan rename <newID>. Creation and renaming have separate menu configurations.
- Three-color gradients. Configure the palette and let players choose their colors in the menu.
- Fonts and decorations. Standard text, small caps, bold, italic, and underline. Add your own font variants through character replacement maps.
- Inventory styling. Customize titles, sizes, slots, materials, lore, buttons, and click actions.
- Name rules. Set length limits, a regular expression, and blocked names. Duplicate IDs are checked. Defaults allow letters, digits, and underscores, with 3–16 characters.
- Creation and rename conditions. Check placeholder values and run actions after success. Conditions are checked before opening the editor and again on confirmation.
Members and invitations
Invite an online player to your clan. They can accept or decline directly from a clickable message. Invitations expire after a configurable interval, defaulting to 5 minutes. Joining checks the current level's member limit.
Members can leave, while authorized roles can invite or remove players. Protect clan deletion with name confirmation. The owner keeps control: they cannot be kicked and use clan deletion rather than the ordinary leave action.
Configure role display names, display order, and internal permissions in roles.yml. The base roles are owner and member; addons can supply additional member roles through role providers.
Levels, EXP, and rewards
Set EXP thresholds, member limits, and level-up actions in levels.yml. The supplied configuration has 10 levels with member limits from 10 to 100. Adjust the values for your server.
Award EXP through admin commands, the API, or addons, such as your own quest or event integration. Awards made through the API with a contributor also record that member's personal contribution.
- Level-up actions. Announce a milestone, execute commands, and configure effects.
- Separate rewards. Give different rewards to the owner and eligible members.
- Contribution requirements. Set a fixed EXP threshold, a percentage of the EXP gap between adjacent levels, or both. When both are set, the larger threshold applies.
- Persistent reward tracking. Each rewarded clan level is recorded so rewards are not repeated after a restart or a level decrease.
Example: if the next level requires another 500 EXP, a 10% contribution threshold is 50 EXP. Set a fixed threshold of 100 EXP as well, and a member must have contributed at least 100 EXP.
PlaceholderAPI and rankings
Display clan details in compatible chat, TAB, menu, and hologram plugins. Core placeholders include:
%hclans_clan% — styled display name; %hclans_id% — raw clan ID.
%hclans_has_clan%, %hclans_is_owner% — clan membership and ownership status.
%hclans_owner%, %hclans_owner_uuid% — owner name and UUID.
%hclans_member_count%, %hclans_level%, %hclans_exp% — member count, level, and EXP.
%hclans_roles%, %hclans_role_ids%, %hclans_role_count% — the player's roles.
%hclans_invite_clan% — active invitation.
%hclans_top_1_display%, %hclans_top_1_exp%, %hclans_top_1_level% — the first ranking entry; replace 1 with the desired position.
%hclans_top_1_members% — member names for the ranked clan; %hclans_top_position% — the player's clan position.
Rankings sort by EXP, then level. Configure the number of ranking entries, the member list separator, yes/no output, and values shown when a player has no clan.
Addons and developer API
Load compatible addons from plugins/hClans/addons. They can register /clan subcommands, placeholders, permissions, additional roles, and permission resolvers.
For developers: ClanApi provides clan, membership, invitation, level, EXP, and contribution operations. ClanDatabaseApi exposes shared database access, while ClanSkullAPI provides head items. Events cover clan creation, deletion, invitations, joining, kicking, and renaming.
Configuration and storage
SQLite is the default and stores data in plugins/hClans/clans.db. MySQL, MariaDB, and H2 are also supported. Set the connection, table prefix, and database options in storage.yml.
Messages and actions support MiniMessage, including colors, gradients, hover text, and clickable text. Action lists provide messages, broadcasts, console or player commands, sounds, titles, action bars, boss bars, particles, and fireworks. Economy actions use Vault and a compatible economy provider.
Russian and English templates are included. General rules use config.yml, roles use roles.yml, progression uses levels.yml, editors use clanCreator.yml and clanRename.yml, and text and actions use messages.yml and actions.yml.
Commands
/clan — show available command help.
/clan create <name> — create a clan through the editor.
/clan rename <newID> — rename and style the clan; owner only.
/clan invite <player> — invite an online player.
/clan accept <clan> / /clan deny <clan> — accept or decline an invitation.
/clan kick <member> — remove a member.
/clan leave — leave the clan.
/clan delete [clanName] — delete the clan, with confirmation when enabled.
/hclans levels <clan> <operation> <amount> — change levels or EXP. Operations: addlvl, addexp, removelvl, removeexp, setlevel, setexp.
/hclans reload — reload configurations, the database connection, and addons.
Example: /hclans levels Knights addexp 500 gives Knights 500 EXP. Admin permissions are hclans.levels and hclans.reload, both defaulting to operators. Clan actions use internal role permissions.
Requirements and setup
Spigot, Paper, and Folia · Minecraft 1.21+ · Java 21 minimum, or the newer Java version required by your server. PlaceholderAPI and Vault are optional integrations.
- Place the JAR in
plugins and start the server.
- Set
locale: en or locale: ru in plugins/hClans/locale.yml.
- Run
/hclans reload or restart to create the chosen locale's files and start clan features.
- Configure storage, levels, rewards, and appearance. Review rename conditions: the supplied template checks for 2500 PlayerPoints through PlaceholderAPI and runs a deduction command; adapt these to your economy.
- Add the desired placeholders to your server interface and install compatible addons.
评论 0
登录后参与评分
还没有评论,来抢沙发吧