PotionMaster 允许你为服务器中的任意玩家添加药水效果,包括修改效果强度。
如何设置
将 PotionsMaster.jar 拖入你的插件文件夹。
启动或重启服务器后,会在 "Plugins/buffs/config.yml" 中生成默认配置文件。
在此文件中,你可以添加新的预设增益效果。以下是一个带注释的示例。
admin: # 别名的名称
modifier: 3 # 药水的“强度”
duration: 60 # 效果持续的秒数
bufftypes: # 这是一个要添加的效果列表。
- fast
- fastdig
- jump
- regen
- fireresist
添加权限
PotionsMaster 共有 5 个权限节点。
potions.buff - 允许玩家使用配置文件中预设的增益效果来增益自己或其他玩家
potions.buffall - 允许玩家执行 /buff {alias} *
potions.debuff - 允许玩家移除自己或另一名玩家身上的所有效果。
potions.reload - 重新加载配置文件
potions.custombuff - 允许玩家创建具有任意强度、时间限制或类型的效果,并将其施加给自己或另一名玩家
命令
命令列表:
/buff [别名] {玩家} 将名为 [别名] 下的所有预定义效果添加到 {玩家}(如果未指定玩家,则作用于自身)
/buff [别名] * 对服务器上所有玩家施加增益效果
/debuff {玩家} 移除某玩家身上的所有效果
/custombuff {玩家} [ID] [强度] [时间] 向 {玩家} 添加效果 [ID],强度为 [强度],持续时间为 [时间](秒)
/reloadbuffs 重新加载配置文件
注意事项:
部分加速和跳跃药水会导致 nocheat 插件出现误判。
此外,某些效果无法正常工作。(例如无呼吸等)
PotionMaster allows you to add potion effects to any player in your server, including altering the modifier effects.
How to set up
Drag and drop the PotionsMaster.jar into your plugin folder.
Starting / Restarting the server will create a default configuration file found in "Plugins/buffs/config.yml"
From here, you can add new premade buffs. Here is an annotated example.
admin: # the name of the alias
modifier: 3 # "Strength" of the potion
duration: 60 # how long in seconds the effect will last for
bufftypes: # this is a list of the effects to add.
- fast
- fastdig
- jump
- regen
- fireresist
Adding permissions
There are 5 nodes for PotionsMaster.
potions.buff - allows players to buff themselves and others with the premade buffs found in the config file
potions.buffall - allows players to perform /buff {alias} *
potions.debuff - allows the player to remove all effects from either themselves or another player.
potions.reload - reloads the config file
potions.custombuff - allows the player to create an effect with any modifier, time limit or type they want, and either inflict it on themselves or another player
Commands
List of commands:
/buff [alias] {player} adds all the predefined effects under the name of [alias] to the {player} (or themselves if no player is specified)
/buff [alias] * buffs all the players on the server
/debuff {player} removes all effects from a player
/custombuff {player} [id] [modifier] [time] adds the effect [id] to {player} with modifier [modifier] and for time (seconds) [time]
/reloadbuffs reloads the config file
Final notes:
Some of the speed and jump potions make nocheat go crazy.
Also some effects don't work. (such as no breathe etc)
评论 0
登录后参与评分
还没有评论,来抢沙发吧