这是一个用于创建和加入队伍的简单插件。该插件旨在与 SkillAPI 配合使用,因为它允许你与其他队员共享经验值。
同一队伍中的玩家无法互相伤害,共享的经验值数量取决于配置文件中的设定。
记分板
如果你同时使用了 MCCore 和本插件,并在配置文件中启用了记分板功能,那么右侧将显示一个记分板,列出队伍成员及其职业等级。此记分板会与 SkillAPI 的记分板协同工作,如果两者均处于激活状态,它们会交替显示。
配置项说明
- max-size: 队伍允许的最大玩家数量
- invite-timeout: 邀请在自动取消前持续的时间(秒)
- remove-on-dc: 玩家断开连接时是否自动将其移出队伍
- new-leader-on-dc: 当前队长断开连接时是否重新选择新的队长
- use-scoreboard: 是否在队伍中显示队伍记分板
- level-scoreboard: 如果为 true,则在记分板上显示等级;否则显示生命值
- only-leader-invites: 是否仅允许队长邀请新队员加入队伍
- exp-modifications.members: 根据队伍人数设定的经验值修正系数
计算公式为:sharedExp = exp / (1 + (members - 1) * value)
值为 0 表示所有玩家获得全额经验,值为 1 表示经验由团队成员人数均分。介于两者之间的值同样有效,因此请找到一个合适的数值(推荐使用 0.5 - 1)。
exp-modifications.level: 根据队伍成员间的等级差异对经验进行的修正系数
计算公式为:playerExp = sharedExp * 2^(-value * levelDifference^2)
值为 0 时,不会因等级差异而改变经验获取量
如果要使用此值,建议使用较小的十进制数(介于 0 到 0.01 之间)
命令
从 v1.2 版本开始,可以通过 commands.yml 文件配置命令。默认设置如下:
- /pt accept - 接受组队邀请
- /pt decline - 拒绝组队邀请
- /pt invite <player> - 邀请玩家加入你的队伍
- /pt leave - 离开当前队伍
- /pt info - 显示关于你队伍的基本信息,如队长、队伍大小和成员列表
权限
- party.general - 使用这些命令的权限
依赖项
源代码
GitHub 源代码
为了获得更快的回复,您可以在 SkillAPI 页面 上留言,或在 SkillAPI 论坛的 Parties 版块发帖。我在那里比在这页面上更频繁地查看。论坛地址为:http:dev.bukkit.org/bukkit-plugins/skillapi/forum/parties/
This is a simple plugin for creating and joining parties. This is meant to be used with SkillAPI as it allows you to share experience with other party members.
Players in the same party cannot damage each other and the amount of experience shared depends on the values in the config
Scoreboard
If you use MCCore along with this plugin and enable the scoreboard in the config, then a scoreboard will be displayed on the right hand side with the members in the party and their class levels. This scoreboard will work with the one from SkillAPI, cycling between them if they are both active.
Config Values
- max-size: the maximum number of players allowed in a party
- invite-timeout: how long an invitation lasts in seconds before it is automatically cancelled
- remove-on-dc: whether or not party members are automatically removed when they disconnect
- new-leader-on-dc: whether or not a new party leader is chosen when the current one disconnects
- use-scoreboard: whether or not to show the party scoreboard when in a party
- level-scoreboard: if true, displays levels in the scoreboad. Otherwise displays health
- only-leader-invites: whether or not to only allow a party leader to invite new party members
- exp-modifications.members: the modifier for the experience depending on the number of members
The formula for this is: sharedExp = exp / (1 + (members - 1) * value)
A value of 0 would mean all players get full experience and a value of 1 would mean the experience is divided by the number of members. Any value inbetween also works, so find a comfortable amount (0.5 - 1 is recommended)
- exp-modifications.level: the modifier for the experience depending on the difference in levels between party members
The formula for this is: playerExp = sharedExp * 2^(-value * levelDifference^2)
A value of 0 would not change the experience due to level differences
If you want to use this value, it's recommended to use small decimals (between 0 and 0.01)
Commands
Commands are configurable as of v1.2 by using the commands.yml file. This is the default setup:
- /pt accept - accepts a party invitation
- /pt decline - declines a party invitation
- /pt invite <player> - Invites a player to join your party
- /pt leave - leaves your current party
- /pt info - shows basic information about your party such as the leader, party size, and members
Permissions
- party.general - permission to use the commands
Dependencies
Source Code
GitHub Source Code
For faster responses, you can comment on the SkillAPI page or post in the SkillAPI forum in the Parties section. I check there more frequently than this page. You can find the forum here: http:dev.bukkit.org/bukkit-plugins/skillapi/forum/parties/
评论 0
登录后参与评分
还没有评论,来抢沙发吧