跳到正文

TotemShow

作者:SEG

Send a message whenever a player cheats death with a Totem of Undying.

收藏

截图

介绍

中文介绍正在准备中,下面暂时显示原文。

TotemShow

A plugin, datapack and mod that detects when a player uses a Totem of Undying and broadcasts a message to all players.

The message displayed when a user activates a Totem of Undying.


Features

  • Detects whenever any player uses a Totem of Undying.
  • Broadcasts a customizable message using the segtotems.message translation key in resource packs for the datapack and mod versions, or by modifying the config.yml file for the plugin version.

Customization (plugin)

The messages can be customized in the config.yml file of plugin.

messages:
  # Message sent when a player uses a Totem of Undying.
  #
  # Placeholders:
  # <player> - Player name.
  # <team-player> - Player name including team's prefixes and suffixes.
  # <item-name> - Displays the item's name.
  # <item-hover> - Displays the used item when the text is hovered.
  #
  # Permissions:
  # totemshow.send - Allows the player to broadcast the message to other players.
  # totemshow.receive - Allows the player to receive broadcast messages.
  resurrect: "<gold>☠ <reset><team-player> <gray>used a <yellow><item-hover>Totem of Undying</item-hover><gold>!"

  # Message displayed when using /totemshow reload, which reloads this config file.
  #
  # Permissions:
  # totemshow.admin - Allows the player to execute the command.
  reload: "<bold><#CF6704>[<gold>TotemShow<#CF6704>]</bold> <yellow>The configuration has been reloaded."

  # Message displayed when enabled via /totemshow on or /totemshow toggle.
  #
  # Permissions:
  # totemshow.admin - Allows the player to execute the command.
  enable: "<bold><#CF6704>[<gold>TotemShow<#CF6704>]</bold> <yellow>The plugin is now <green>enabled<yellow>."

  # Message displayed when disabled via /totemshow off or /totemshow toggle.
  #
  # Permissions:
  # totemshow.admin - Allows the player to execute the command.
  disable: "<bold><#CF6704>[<gold>TotemShow<#CF6704>]</bold> <yellow>The plugin is now <red>disabled<yellow>."

  # Messages displayed when using /totemshow.
  #
  # Permissions:
  # totemshow.admin - Allows the player to execute the command.
  help:
    - "<#CF6704><strikethrough>                       <reset><gold><bold> TotemShow </bold><#CF6704><strikethrough>                       "
    - "<gold>/totemshow on <#CF6704>- <yellow>Enables totem detection."
    - "<gold>/totemshow off <#CF6704>- <yellow>Disables totem detection."
    - "<gold>/totemshow toggle <#CF6704>- <yellow>Toggles totem detection."
    - "<gold>/totemshow reload <#CF6704>- <yellow>Reloads the plugin's configuration."

Customization (datapack/mod)

You can customize the broadcast message by editing the segtotems.message key in your language file. The example below shows how the default message would look in an en_us.json file:

{
    "segtotems.message": "§6☠ %s §7used a §eTotem of Undying§6!"
}

Modify this key in your own en_us.json (or equivalent) to change how the message appears in-game, this can be done inside a resource pack for better user experience.

Credits

Feel free to include this in your modpack! Just please don’t claim it as your own.

常见问题

TotemShow 支持哪些 Minecraft 版本?

TotemShow 支持 Minecraft Java 版 1.21–26.3,共 17 个版本,可用的加载器:Fabric / Folia / Forge / NeoForge / Paper / Purpur / Quilt。下载时注意选择和你游戏版本一致的文件。

TotemShow 怎么安装?

先用 PCL2 或 HMCL 启动器安装对应版本的 Fabric / Folia / Forge / NeoForge / Paper / Purpur / Quilt,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。运行环境:客户端 / 服务端。

评论

登录后评论和评分