PlayerHunt

插件

· 作者 mallusrgreatv2

最佳的追捕模组插件,提供广泛的自定义选项。

0 本站下载 0 关注 更新于 1 年前

最新 1.0.0 · 1.21.3 · Bukkit / Paper

一键开服(送7天)

PlayerHunt

PlayerHunt 是一款引人入胜的 Minecraft 插件,允许玩家参与一场惊险刺激的狩猎游戏。猎人必须追踪并消灭奔跑者,而奔跑者则需要躲避猎人并试图击败末影龙以赢得比赛。

功能

  • 队伍管理: 添加和管理猎人队与奔跑者队的玩家。
  • 猎人指南针: 猎人会获得一个指向最近奔跑者的指南针。
  • 倒计时计时器: 游戏开始前可配置的倒计时计时器。
  • 语言支持: 可自定义的语言消息,以定制游戏体验。

命令

/playerhunt

用于管理 PlayerHunt 游戏的主要命令。子命令包括:

  • /playerhunt start: 启动带有倒计时的游戏。
  • /playerhunt stop: 立即停止游戏。
  • /playerhunt reload: 重新加载插件配置和语言文件。
  • /playerhunt team: 管理与队伍相关的操作。

/playerhunt team

用于队伍管理的子命令:

  • /playerhunt team add hunter <username>: 将玩家添加到猎人队。
  • /playerhunt team add runner <username>: 将玩家添加到奔跑者队。
  • /playerhunt team remove <username>: 从游戏中移除玩家。
  • /playerhunt team view: 查看当前队伍。
  • /playerhunt team clear: 清除游戏中的所有玩家。
  • /playerhunt team last: 将游戏玩家设置为上一局游戏的玩家。

配置

该插件使用 config.yml 文件来管理设置。主要配置选项包括:

  • countdown: 游戏开始前的倒计时时间。
  • compass: 与猎人指南针相关的设置,包括冷却时间和显示选项。
config.yml
 # Countdown to game start in seconds
countdown: 20
# Whether the plugin should use a custom tablist when the game is progressing.
enableTablist: true
compass:
  enabled: true
  # Seconds for which the player can't use the compass after using it once
  cooldown: 10
  name: '<reset><dark_purple><b>Runner Compass</b> <gray>(Right-Click)'
  lore:
    - '<aqua>Shows you the direction to the nearest runner.'
    - '<gray><i>Right-click to update direction'
  droppable: false
  showEnchanted: true
deathMessages:
  enableRunner: true
  enableHunter: true

语言

可自定义的消息存储在 language 文件夹中。主要消息包括:

  • deathMessages: 玩家死亡时的消息,根据他们是猎人还是奔跑者进行区分。
  • commands: 各种插件命令的消息。
  • countdown: 游戏开始前的倒计时期间显示的消息。
  • titles: 在游戏关键时刻向玩家显示的标题。
en_us.lang.yml
# Prefix which will be shown before all the messages.
prefix: "<gold>PlayerHunt <gray>»<white>"

deathMessages:
  # Runner dies, but not to a hunter (e.g., fall damage, killed by other players not included in the game, etc.). PlaceholderAPI parsed for runner
  runnerDied: "<green>Runner <aqua>%player%</aqua> has died! There are <aqua>%runners%</aqua> runners left."
  # A hunter kills runner. PlaceholderAPI parsed for runner
  runnerKilled: "<green>Runner <aqua>%runner%</aqua> has been killed by the hunter <aqua>%hunter%</aqua>. There are <aqua>%runners%</aqua> runners left."
  # Hunter dies to anything that is not a player
  hunterDied: "<green>Hunter <aqua>%hunter%</aqua> has died!"
  # Hunter dies to a runner
  hunterKilled: "<green>Hunter <aqua>%hunter%</aqua> has been killed by the runner <aqua>%runner%</aqua>"
helpHeader: "<gold>Help: <b>%command%"
commands:
  # /playerhunt reload
  reload: "<green>Configurations and languages reloaded."
  # /playerhunt start
  start:
    # Player executes the command
    starting: "<green>Countdown has been initiated and the game will start in <aqua>%time%s</aqua>."
    # There are not enough players (one hunter and one runner) to start the game
    notEnoughPlayers: "<red>Not enough players to start a player hunt."
    # Player tries to execute this command while a game is already running
    gameAlreadyStarted: "<red>Game already started. If you want to stop it, you can use <aqua>/playerhunt stop</aqua>."
  # /playerhunt stop
  stop:
    # Player forcefully stops the game by using this command
    # Note: This message will be sent instead of game-end.message in case the stop command was used.
    gameStopped: "<red>The game was forcefully stopped."
    # Player tries to execute this command while a game isn't already running
    gameNotStarted: "<red>Game not started. If you want to start it, you can use <aqua>/playerhunt start</aqua>."
  # /playerhunt add
  add:
    hunter: "<green>Added <aqua>%player%</aqua> as <aqua>hunter</aqua>."
    runner: "<green>Added <aqua>%player%</aqua> as <aqua>runner</aqua>."
    # Player tries to add an offline player
    notFound: "<red>A player with that name is not online!"
    # Player tries to add a player that already is in a team
    alreadyInTeam: "<red>The player is already in a team! Remove the player using <aqua>/playerhunt remove</aqua>."
    # /playerhunt add [hunter/runner]
    help: |-
      <yellow>/playerhunt team add hunter <gold><username> <gray>- <white>Add a player to the hunter team
      <yellow>/playerhunt team add runner <gold><username> <gray>- <white>Add a player to the runner team
  # /playerhunt team
  team:
    # /playerhunt team view
    view: |-
      <green><i>Hunters:</i>
                  <white>%hunters%
      <red><i>Runners:</i>
                  <white>%runners%
    # /playerhunt team remove
    remove:
      success: "<green>Removed <aqua>%player%</aqua> from the game."
      # Player tries to remove an offline player
      notFound: "<red>A player with that name is not online!"
      # Player tries to remove while the countdown is progressing
      inCountdown: "<red>You can't remove players during countdown!"
      help: "<yellow>/playerhunt team remove <gold><username> <gray>- <white>Remove a player from the game"
    # /playerhunt team clear
    clear: "<green>Cleared all players from game."
    # /playerhunt team last
    last: "<green>Set game players to the last game's players."
    # /playerhunt team
    help: |-
      <yellow>/playerhunt team add hunter <gold><username> <gray>- <white>Add a player to the hunter team
      <yellow>/playerhunt team add runner <gold><username> <gray>- <white>Add a player to the runner team
      
      <yellow>/playerhunt team remove <gold><username> <gray>- <white>Remove a player from the game
      
      <yellow>/playerhunt team last <gray>- <white>Set current team to players from previous game
      <yellow>/playerhunt team clear <gray>- <white>Remove all players
      <yellow>/playerhunt team view <gray>- <white>See the current teams
  help: |-
    <yellow>/playerhunt team <gray>- <white>Commands to manage teams (add or remove players)
    <yellow>/playerhunt start <gray>- <white>Start the game
    <yellow>/playerhunt stop <gray>- <white>Stop the game
    
    <yellow>/playerhunt reload <gray>- <white>Reload configuration and languages
countdown:
  # Countdown to the start of the game in chat
  message: "<green>Game starts in <aqua>%time%s</aqua>..."
titles:
  # 1; To disable any titles, remove their title and subtitle
  # 2; fade-in, stay, and fade-out are in ticks (20 ticks = 1 second)

  # Title to show as countdown
  countdown:
    title: "<dark_green>%time%"
    subtitle: "<gray>seconds left"
    fade-in: 3
    stay: 20
    fade-out: 3
  gameStarted:
    title: "<gold>Player Hunt Started!"
    subtitle: "<gray>You are a <b>%team%</b>."
    fade-in: 10
    stay: 80
    fade-out: 10
  gameEnded:
    title: "<gold>Player Hunt Ended!"
    subtitle: "<gray>The winner team was <b>%team%</b>."
  gameEndedAbrupt:
    title: "<gold>Player Hunt Ended!"
    subtitle: "<gray>The game was forcefully ended."
compass:
  # 1; type can be ACTION_BAR, CHAT, and anything else.
  #    ACTION_BAR: Message shows up in action bar
  #    CHAT: Message shows up in chat
  #    Something else: Disables the message

# 玩家尝试与指南针互动,但当前世界中没有追逐者
  noRunners:
    type: ACTION_BAR
    content: "<red>你的当前世界中没有追逐者。"
  # 指南针处于冷却状态
  cooldownMessage:
    type: ACTION_BAR
    content: "<red>指南针正在冷却中!无法在 <aqua>%time%s</aqua> 内使用。"
  # 指南针使用成功,方向已更新
  message:
    type: ACTION_BAR
    content: "<green>X: <aqua>%x%</aqua>, <green>Z: <aqua>%z%</aqua>"
gameStarted: |-
  
  <gold><st>                       </st><b>玩家狩猎</b><st>                       </st></gold>
  
       <green><i>猎手:</i>
           <white>%hunters%</white>
       <red><i>追逐者:</i></red>
           <white>%runners%</white>
  
  
  猎手们必须尽快尝试击杀追逐者,
            而追逐者们则竭尽全力,
      通过击败末影龙来赢得比赛。
gameEnded: |-
  <green>玩家狩猎游戏已结束。<aqua>%team%</aqua> 队伍获胜!
  
       <green><i>获胜者:</i>
           <white>%winners%</white>
       <red><i>失败者:</i></red>
           <white>%losers%</white>

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

评论 0

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

登录后参与评分

还没有评论,来抢沙发吧

评论配图

相似资源