LeaderPlugin
LeaderPlugin 为 Paper 服务器添加了一个完整的政治领导系统。玩家选举一位领袖,该领袖获得强大的权力,而服务器的其余玩家可以支持他们、资助王国、收集赏金或发动叛乱推翻现任者。
专为 PaperMC 1.21.1 和 Java 21 构建。
功能特性
- 由玩家主导的领袖选举
- 持久化的领袖、投票、国库、法令、叛乱和赏金数据
- 带有可配置冷却时间的领袖技能
- 可选的献祭仪式事件
- 使用可配置物品的国库与进贡经济系统
- 向在线玩家征收税款
- 改变服务器玩法的法令
- 从王国国库中资助的赏金系统
- 可以推翻现任领袖的叛乱系统
- 临时防止 PvP 的避难所区域
- 用于强制设置、清除和重新加载领导状态的后台管理权限
领导权
玩家通过以下命令对在线候选人进行投票:
/leader vote <player>
当候选人达到配置的票数阈值时,他们将成为当选领袖。该领袖将保持其角色,直到其退位、被管理员清除或被叛乱推翻为止。
有用的选举命令:
/leader current
/leader votes
/leader abdicate
/leader realm
领袖技能
当选领袖可以使用各种各样的能力:
/leader lightning <player>
/leader imprison <player>
/leader rally
/leader judgement <player>
/leader pardon <player>
/leader sacrifice <player>
/leader exile <player>
/leader sanctuary
/leader warcry
/leader beacon
/leader feast
/leader summon <player>
/leader loyalty <player>
/leader crown
/leader proclaim <message>
/leader locate <player>
示例:
- 闪电 (Lightning):用闪电效果和伤害攻击目标。
- 监禁 (Imprison):将目标困在临时的牢笼中。
- 集结 (Rally):为附近的玩家提供增益效果。
- 审判 (Judgement):标记并削弱目标。
- 赦免 (Pardon):清除负面效果和叛乱状态。
- 献祭 (Sacrifice):启动一个可选的延迟仪式,杀死选定的受害者。
- 流放 (Exile):将目标传送至荒野深处。
- 庇护所 (Sanctuary):创建一个临时无 PvP 区域。
- 战吼 (Warcry):伤害、削弱并将附近的玩家击退。
- 信标 (Beacon):为附近的玩家提供强大的实用增益。
- 盛宴 (Feast):消耗国库资源来治疗并喂食附近的玩家。
- 召唤 (Summon):在警告延迟后将目标拉至领袖身边。
- 宣告 (Proclaim):向全服广播一条皇家消息。
王国系统
LeaderPlugin 不仅仅包含简单的技能。王国本身也可以演变发展:
/leader tribute <amount>
/leader tax
/leader decree <none|war|peace|prosperity|storm>
/leader rebel
/leader rebels
/leader bounty <player> <reward>
/leader bounties
/leader clearbounty <player>
国库
玩家可以缴纳配置的国库物品,默认为绿宝石。领袖可以使用国库资源举办盛宴和发放赏金。
税收
领袖可以从在线且未被豁免的玩家那里收取少量配置的国库物品作为税收。
法令
领袖可以设定全服范围的法令:
none - 无活跃法令
war - 领袖的攻击造成更高伤害
peace - 减少 PvP 伤害
prosperity - 挖掘矿石可能会产生额外奖励
storm - 领袖的攻击可以触发闪电火花
叛乱
玩家可以使用 /leader rebel 加入叛乱。如果有足够多的符合条件的在线玩家参与叛乱,现任领袖将被推翻,王座变为空悬状态。
赏金
领袖可以从国库中资助赏金。当目标被其他玩家击杀时,击杀者将获得配置的奖励物品和经验值。
配置
几乎所有主要数值都在 config.yml 中进行配置,包括:
- 投票阈值
- 冷却时间
- 伤害数值
- 技能持续时间
- 光环半径
- 启用/禁用献祭
- 国库材质
- 税收金额
- 叛乱阈值
- 赏金奖励限制
- 法令效果
要禁用献祭:
sacrifice:
enabled: false
后台管理命令
/leader force <player>
/leader clear
/leader reload
权限节点
leaderplugin.use
leaderplugin.vote
leaderplugin.admin
leaderplugin.exempt.lightning
leaderplugin.exempt.imprison
leaderplugin.exempt.sacrifice
leaderplugin.exempt.exile
leaderplugin.exempt.summon
leaderplugin.exempt.tax
需求
这是一个服务端 Paper 插件。它不是 Fabric、Forge、NeoForge 模组,也不是客户端模组。
LeaderPlugin
LeaderPlugin adds a full political leadership system to Paper servers. Players elect a leader, the leader gains dramatic powers, and the rest of the server can support them, fund the realm, collect bounties, or rise up in rebellion.
Built for PaperMC 1.21.1 with Java 21.
Features
- Player-driven leader elections
- Persistent leader, vote, treasury, decree, rebel, and bounty data
- Leader powers with configurable cooldowns
- Optional sacrifice ritual event
- Treasury and tribute economy using a configurable item
- Tax collection from online players
- Decrees that change server gameplay
- Bounties funded from the realm treasury
- Rebellion system that can overthrow the current leader
- Sanctuary zones that temporarily prevent PvP
- Admin controls for forcing, clearing, and reloading leadership state
Leadership
Players vote for an online candidate with:
/leader vote <player>
When a candidate reaches the configured vote threshold, they become the elected leader. The leader keeps their role until they abdicate, are cleared by an admin, or are overthrown by a rebellion.
Useful election commands:
/leader current
/leader votes
/leader abdicate
/leader realm
Leader Powers
The elected leader can use a wide range of abilities:
/leader lightning <player>
/leader imprison <player>
/leader rally
/leader judgement <player>
/leader pardon <player>
/leader sacrifice <player>
/leader exile <player>
/leader sanctuary
/leader warcry
/leader beacon
/leader feast
/leader summon <player>
/leader loyalty <player>
/leader crown
/leader proclaim <message>
/leader locate <player>
Examples:
- Lightning strikes a target with lightning effects and damage.
- Imprison traps a target in a temporary cage.
- Rally buffs nearby players.
- Judgement marks and weakens a target.
- Pardon clears negative effects and rebel status.
- Sacrifice starts an optional delayed ritual that kills the chosen victim.
- Exile teleports a target far into the wilderness.
- Sanctuary creates a temporary no-PvP area.
- Warcry damages, weakens, and knocks back nearby players.
- Beacon grants strong utility buffs nearby.
- Feast spends treasury resources to heal and feed nearby players.
- Summon pulls a target to the leader after a warning delay.
- Proclaim broadcasts a royal message to the whole server.
Realm Systems
LeaderPlugin includes more than simple powers. The realm itself can evolve:
/leader tribute <amount>
/leader tax
/leader decree <none|war|peace|prosperity|storm>
/leader rebel
/leader rebels
/leader bounty <player> <reward>
/leader bounties
/leader clearbounty <player>
Treasury
Players can contribute the configured treasury item, defaulting to emeralds. Leaders can spend treasury resources on feasts and bounties.
Taxes
The leader can collect a small configured amount of the treasury item from online non-exempt players.
Decrees
Leaders can set realm-wide decrees:
none - no active decree
war - leader attacks hit harder
peace - PvP damage is reduced
prosperity - mining ores can create bonus rewards
storm - leader attacks can trigger lightning sparks
Rebellion
Players can join a rebellion with /leader rebel. If enough eligible online players rebel, the current leader is overthrown and the throne becomes empty.
Bounties
The leader can fund bounties from the treasury. When a target is killed by another player, the killer receives the configured reward item and experience.
Configuration
Almost every major value is configurable in config.yml, including:
- vote threshold
- cooldowns
- damage amounts
- ability durations
- aura radius
- sacrifice enable/disable
- treasury material
- tax amount
- rebellion threshold
- bounty reward limits
- decree effects
To disable sacrifices:
sacrifice:
enabled: false
Admin Commands
/leader force <player>
/leader clear
/leader reload
Permissions
leaderplugin.use
leaderplugin.vote
leaderplugin.admin
leaderplugin.exempt.lightning
leaderplugin.exempt.imprison
leaderplugin.exempt.sacrifice
leaderplugin.exempt.exile
leaderplugin.exempt.summon
leaderplugin.exempt.tax
Requirements
This is a server-side Paper plugin. It is not a Fabric, Forge, NeoForge, or client-side mod.
评论 0
登录后参与评分
还没有评论,来抢沙发吧