VoteForCommand

插件

· 作者 leonidussaks

允许玩家投票在服务器上执行命令的插件。管理员可以创建配置文件,以指定他们希望开放哪些命令。

0 本站下载 0 关注 更新于 7 个月前

最新 1.0-SNAPSHOT · 1.21.11 · Paper

一键开服(送7天)

关于

VoteForCommand 允许玩家投票以执行服务器命令。

这款易于使用的插件可以为你的服务器增添气氛,因为它支持添加任意复杂度的命令。

配置

你可以在配置文件中完全自定义投票选项:

votingCommands:
  freeDiamond:
    name: "FREE DIAMOND!!" # 菜单和聊天中显示的名称
    description: "Give a random player diamond!" # 向玩家显示的描述
    material: "DIAMOND" # 用作菜单图标的物品
    commands: # 投票通过后执行的命令
      - "execute as @r run give @s minecraft:diamond 1"
    cooldown: 3600 # 此投票可再次启动前的冷却时间(秒)
    percentToWin: 50.0 # 通过所需的“赞成”票百分比
    minimumOnline: 5 # 启动投票所需的最少在线玩家数
  heal:
    name: "Sacred blessing"
    description: "Sacred blessing of the goddess of health. All players will receive regeneration."
    material: "GOLDEN_APPLE"
    commands:
      - "execute as @a at @s run particle minecraft:heart ~ ~1 ~ 0.5 1 0.5 0.1 10"
      - "effect give @a minecraft:glowing 5 0 true"
      - "effect give @a minecraft:regeneration 120 1 true"
    cooldown: 3600
    percentToWin: 70.0
    minimumOnline: 10

权限与命令

commands:
  vote:
    description: "Open vote menu."
    usage: "/vote"
    permission: "voteforcommand.vote.use"
  reload:
    description: "Reload plugin config."
    usage: "/reload"
    permission: "voteforcommand.reload.use"
    aliases:
      - votereload
permissions:
  voteforcommand.vote.use:
    description: "Allow player to use /vote command (open menu)."
    default: true
  voteforcommand.vote.participant:
    description: "Allow player to click [FOR] and [AGAINST] buttons in chat."
    default: true
  voteforcommand.reload.use:
    description: "Allow admin to use /reload command for plugin."

你是这个资源的作者?登录后可认领此资源。

评论 0

0.0
暂无评分
5 星
0
4 星
0
3 星
0
2 星
0
1 星
0
我的评分

登录后参与评分

还没有评论,来抢沙发吧

评论配图

相似资源