Icon

TitleManager

SpigotMC 玄易同志 2024-04-11
资源介绍
只需将 TitleManager.jar 文件放入您的 plugins 文件夹。

Configuration 配置

配置文件允许您编辑插件的不同方面。
[QUOTE]
添加 ${name-of-animation} 将显示给定的动画。
[/QUOTE]
[QUOTE]
添加 %{name-of-placeholder} 将显示给定的占位符。
[/QUOTE]
[QUOTE]
添加 ${name-of-script:My fancy text} 将显示由脚本 name-of-script 使用输入 My fancy text 生成的动画。
[/QUOTE]

特殊人物的问题?
如果您在显示特殊字符(unicode字符)时遇到问题,请在此处查看如何修复 config.yml 文件编码。

默认配置


[SPOILER="配置文件"]
YAML
############################################################
# +------------------------------------------------------+ #
# |                       Notes                          | #
# +------------------------------------------------------+ #
############################################################

# Config comment style borrowed from the Essentials config.
#
# If you want to use special characters (ASCII, UTF-8 characters) in the config, you need to save the file as UTF-8.
#   - If you don't know how this is done, you can see the guide on the wiki: https://github.com/Puharesource/TitleManager/wiki/Unicode---UTF-8-characters-for-TitleManager
#
# Config errors, such as the plugin not loading or the config resetting can be fixed by ensuring that:
#   - No tabs are present: YAML only allows spaces.
#   - You have escaped all apostrophes or quotes in your text:
#      - If you surround your text with apostrophes like this 'don't', double all of your apostrophes like this: 'don''t'
#      - If you surround your text with quotes like this "Quote: "hello"", switch to apostrophes instead like this 'Quite: "hello"'.
#
# If you've got problems:
#   - Join the Discord server here: https://discord.gg/NwdtW2d
#   - Write a ticket on the Issue Tracker here: https://github.com/Puharesource/TitleManager/issues
#
# 1 second = 20 ticks
#
# For more information check: https://github.com/Puharesource/TitleManager/wiki

############################################################
# +------------------------------------------------------+ #
# |                       General                        | #
# +------------------------------------------------------+ #
############################################################

# Never change this value
config-version: 4

# Toggles debug mode, which prints additional information when the plugin does something.
debug: false

# Toggles whether or not all of the features of TitleManager will be toggled.
using-config: true

# Toggles whether or not all of the BungeeCord functionality will be toggled.
using-bungeecord: false

# (Feature only works on 1.7-1.8 Protocol Hack)
# Toggles whether or not 1.7 players will see actionbar messages when they're holding an item.
legacy-client-support: false

# Toggles whether or not the plugin should warn administrators if there's a new version out.
check-for-updates: true

############################################################
# +------------------------------------------------------+ #
# |                     Player List                      | #
# +------------------------------------------------------+ #
############################################################

# Sets the header and footer of the player list. (Shown when you hold the TAB key.)

player-list:

  # Toggles this feature.
  enabled: true

  # Sets the header of the player list.
  #
  # Single line format.
  # header: 'My header text'
  #
  # Multiple line format.
  # header:
  # - 'My first line'
  # - 'My second line'
  # - 'My third line'
  header:
  - ''
  - '${shine:[0;2;0][0;25;0][0;25;0][&3;&b]My Server}'
  - ''

  # Sets the footer of the player list.
  #
  # Single line format.
  # footer: 'My footer text'
  #
  # Multiple line format.
  # footer:
  # - 'My first line'
  # - 'My second line'
  # - 'My third line'
  footer:
  - ''
  - '&7World time: &b%{12h-world-time}'
  - '&7Server time: &b%{server-time}'
  - ''
  - '${right-to-left} &b%{online}&7/&b%{max} &7Online Players ${left-to-right}'

############################################################
# +------------------------------------------------------+ #
# |                    Welcome Title                     | #
# +------------------------------------------------------+ #
############################################################

# Sets the title that is sent to the player when they join the server.

welcome-title:

  # Toggles this feature.
  enabled: true

  # The title shown.
  title: 'Welcome to My Server'

  # The subtitle shown.
  subtitle: 'Hope you enjoy your stay'

  # The time it takes for the title to fade into the screen. (In ticks)
  fade-in: 20

  # The time it takes for the title to stay on the screen. (In ticks)
  stay: 40

  # The time it takes for the title to fade out of the screen. (In ticks)
  fade-out: 20

  # The title shown when the player joins the server for the first time.
  first-join:

    # The title shown.
    title: 'Welcome to My Server'

    # The subtitle shown.
    subtitle: 'This is your first time!'

############################################################
# +------------------------------------------------------+ #
# |                  Welcome Actionbar                   | #
# +------------------------------------------------------+ #
############################################################

# Sets the actionbar that is sent to the player when they join the server.

welcome-actionbar:

  # Toggles this feature.
  enabled: true

  # The message shown.
  title: 'Welcome to My Server'

  # The message shown when the player joins the server for the first time.
  first-join: 'Welcome to My Server, this is your first time!'

############################################################
# +------------------------------------------------------+ #
# |                     Placeholders                     | #
# +------------------------------------------------------+ #
############################################################

# Configures anything placeholder related.

placeholders:

  # The format used by the balance placeholder.
  number-format:

    # Toggles this feature.
    enabled: true

    # The format used.
    format: '#,###.##'

  # The format used by the server-time placeholder.
  # The format used can be found here: https://docs.oracle.com/javase/7/docs/api/java/text/SimpleDateFormat.html
  date-format: 'EEE, dd MMM yyyy HH:mm:ss z'

############################################################
# +------------------------------------------------------+ #
# |                      Scoreboard                      | #
# +------------------------------------------------------+ #
############################################################

# Sets the scoreboard (sidebar) that is sent to the player

scoreboard:

  # Toggles this feature
  enabled: true

  # The title displayed at the very top of the scoreboard
  # The title must consist of 32 or less characters (this includes color codes)
  title: '${shine:[0;2;0][0;25;0][0;25;0][&3&l;&b&l]My Server}'

  # The lines of the scoreboard (Maximum of 15 lines allowed)
  # Each line can only have 40 characters (this includes color codes)
  # Each line must also be unique, a work around would be to put a color code at the end your line, to make it unique.
  lines:
  - '&b&m----------------------------------'
  - '&b● &3&lPlayer Name:'
  - '&b%{name}'
  - '&r'
  - '&b● &3&lPing:'
  - '&b%{ping} MS'
  - '&r&r'
  - '&b● &3&lServer Time:'
  - '&b%{server-time}'
  - '&b&m----------------------------------&r'

############################################################
# +------------------------------------------------------+ #
# |                      Announcer                       | #
# +------------------------------------------------------+ #
############################################################

# Automatically send titles and/or actionbar messages to the players on the server.

announcer:

  # Toggles this feature.
  enabled: true

  # The announcements
  #
  # The format:
  #
  # announcement-name:
  #   interval: 60                        (Seconds, Default: 60)
  #   timings:
  #     fade-in: 20                       (Ticks, Default: 20)
  #     stay: 40                          (Ticks, Default: 40)
  #     fade-out: 20                      (Ticks, Default: 20)
  #   titles:
  #   - 'First title'                     (The title sent)
  #   - 'Second title\nSecond subtitle'   (The next title sent, this time using \n to split the title and subtitle from each other)
  #   actionbar:
  #   - 'First actionbar'                 (The actionbar message sent)
  #   - 'The next actionbar sent'         (The next actionbar message sent)
  announcements:
    my-announcement:
      interval: 60
      timings:
        fade-in: 20
        stay: 40
        fade-out: 20
      titles:
      - '&aThis is the 1st title announcement\n&aThis is the subtitle'
      - '&bThis is the 2nd title announcement\n&bThis is the subtitle'
      actionbar:
      - '&aThis is the 1st actionbar announcement'
      - '&bThis is the 2nd actionbar announcement'

############################################################
# +------------------------------------------------------+ #
# |                       Messages                       | #
# +------------------------------------------------------+ #
############################################################

# Configures all of the messages sent to the users.

messages:

  # The messages from the command /tm version
  command-version:
    description: 'Gives you the current running version of TitleManager'
    version: '&aThe server is running %version'

  # The messages from the command /tm reload
  command-reload:
    description: 'Reloads TitleManager'
    reloaded: '&aTitleManager reloaded'

  # The messages from the command /tm animations
  command-animations:
    description: 'Displays all loaded animations'
    format: '&aLoaded animations (&f%count&a): %animations'
    separator: '&f, &a'

  # The messages from the command /tm scripts
  command-scripts:
    description: 'Displays all loaded scripts'
    format: '&aLoaded scripts (&f%count&a): %scripts'
    separator: '&f, &a'

  # The messages from the command /tm broadcast
  command-broadcast:
    description: 'Broadcasts a title to the server'
    usage: '<title>|<title\nsubtitle>'
    title-sent: '&aYou have broadcasted the title "&r%title&a".'
    subtitle-sent: '&aYou have broadcasted the subtitle "&r%subtitle&a".'
    both-sent: '&aYou have broadcasted the titles "&r%title&a" "&r%subtitle&a".'

  # The messages from the command /tm abroadcast
  command-abroadcast:
    description: 'Broadcasts an actionbar title to the server'
    usage: '<title>'
    sent: '&aYou have broadcasted the actionbar title "&r%title&a".'

  # The messages from the command /tm message
  command-message:
    description: 'Sends a title to the specified player'
    usage: '<player> <title>|<title\nsubtitle>'
    title-sent: '&aYou have sent %player the title "&r%title&a".'
    subtitle-sent: '&aYou have sent %player the subtitle "&r%subtitle&a".'
    both-sent: '&aYou have sent %player the titles "&r%title&a" "&r%subtitle&a".'
    invalid-player: '&c%player is not a valid player.'

  # The messages from the command /tm amessage
  command-amessage:
    description: 'Sends an actionbar title to the specified player'
    usage: '<player> <title>'
    sent: '&aYou have sent %player the actionbar title "&r%title&a".'
    invalid-player: '&c%player is not a valid player.'

[/SPOILER]

占位符

TitleManager为您的标题,标题等提供了大量的占位符。它们是文本片段,在显示时将被替换为值。
更多的占位符下载插件剪辑PlaceholderAPI和享受它的许多占位符在使用!

Clips PlaceholderAPI不使用TitleManager语法作为占位符,因此你需要像这样编写占位符: %placeholder%

Normal Placeholders 正常占位符

[TABLE]
[TR]
[TH]Placeholder 占位符[/TH]
[TH]Description 描述[/TH]
[/TR]
[TR]
[TD]%{player}[/TD]
[TD]The player's username. 玩家的用户名。[/TD]
[/TR]
[TR]
[TD]%{displayname} %{显示名称}[/TD]
[TD]The player's display name (nickname).
玩家的昵称(昵称)。[/TD]
[/TR]
[TR]
[TD]%{strippeddisplayname}[/TD]
[TD]The player's displayname (nickname), without colors.
玩家的昵称,没有颜色。[/TD]
[/TR]
[TR]
[TD]%{world}[/TD]
[TD]The current name of the world that the player is in.
玩家所在世界的当前名称。[/TD]
[/TR]
[TR]
[TD]%{world-time}[/TD]
[TD]The current time of the world the player is in.
玩家所在世界的当前时间。[/TD]
[/TR]
[TR]
[TD]%{12h-world-time}[/TD]
[TD]The current time of the world the player is in, in a 12 hour format.
玩家所在世界的当前时间,以12小时格式显示。[/TD]
[/TR]
[TR]
[TD]%{24h-world-time}[/TD]
[TD]The current time of the world the player is in, in a 24 hour format.
玩家所在世界的当前时间,以24小时格式显示。[/TD]
[/TR]
[TR]
[TD]%{world-online}[/TD]
[TD]The current amount of players in the world the player is in.
玩家当前所在世界的玩家数量。[/TD]
[/TR]
[TR]
[TD]%{online}[/TD]
[TD]The current amount of players on the server.[/TD]
[/TR]
[TR]
[TD]%{max}[/TD]
[TD]The max amount of players on the server.[/TD]
[/TR]
[TR]
[TD]%{server-time}[/TD]
[TD]The current time of the server.[/TD]
[/TR]
[TR]
[TD]%{ping}[/TD]
[TD]The player's ping.[/TD]
[/TR]
[TR]
[TD]%{group}[/TD]
TD]The primary group name of the player. [I[/I][/TD]
[/TR]
[TR]
[TD]%{balance}[/TD]
[TD]The player's balance.[/TD]
[/TR]
[TR]
[TD]%{safe-online}[/TD]
[TD]The amount of online player's without vanished players. (Requires Essentials, VanishNoPacket and / or SuperVanish)[/TD]
[/TR]
[TR]
[TD]%{tps}[/TD]
[TD]Shows the TPS of the server[/TD]
[/TR]
[TR]
[TD]%{c:YourHexColorHere}[/TD]
TD Creates a HEX color code. Replace YourHexColorHere with a HEX color, example: %{c:#ffff00}[/TD]
[/TR]
[TR]
[TD]%{gradient:[Your,Colors,Here]YourTextHere}[/TD]
TD Creates a HEX color gradient. Replace Your,Colors,Here with a comma-separated list of HEX colors & YourTextHere with the text you want to have a gradient, example: %{gradient:[#ff0000,#00ff00,#0000ff]My HEX gradient text}[/TD]
[/TR]
[/TABLE]

BungeeCord Placeholders


You need to set using-bungeecord to true in the configuration file for these placeholders to work.
[TABLE]
[TR]
[TH]Placeholders[/TH]
[TH]Description 描述[/TH]
[/TR]
[TR]
[TD]%{bungeecord-online}[/TD]
[TD]Displays the combined player count of all servers behind BungeeCord.[/TD]
[/TR]
[TR]
[TD]%{online:YourServerHere}[/TD]
[TD]Displays the player count of the given server. (Replace YourServerHere with the bungeecord server name)
显示给定服务器的玩家计数。(将YourServerHere替换为bungeecord服务器名称)[/TD]
[/TR]
[TR]
[TD]%{server} %{服务器}[/TD]
[TD]Displays the current server's BungeeCord name.
显示当前服务器的BungeeCord名称。[/TD]
[/TR]
[/TABLE]


[SPOILER="指令"]

Commands 命令

All commands start with either /tm or /titlemanager
所有命令都以 /tm 或 /titlemanager 开头
<argument> is a required argument.
<argument> 是必需的参数。
[argument] is an optional argument.
[argument] 是一个可选参数。
Adding %{placeholder} or %{placeholder:parameter} will replace the given placeholder with its respected value.
添加 %{placeholder} 或 %{placeholder:parameter} 会将给定的占位符替换为相应的值。
Adding ${animation} will replace the animation in the message with the given animation.
添加 ${animation} 会将消息中的动画替换为给定的动画。
Adding ${script:input} will replace the script and input value with a generated animation.
添加 ${script:input} 将用生成的动画替换脚本和输入值。

The permissions for the commands can be found [URL='https://tmdocs.tarkan.dev/admins/permissions']here[/URL].
命令的权限可以在这里找到。

Commands 命令

Broadcast 广播

Sends a title message to everyone on the server, put <nl>, {nl} or %nl% inside the message, to add a subtitle.
向服务器上的每个人发送标题消息,将 <nl> , {nl} 或 %nl% 放入消息中,以添加字幕。

Format 格式

/tm bc [parameters] <message>
/tm broadcast [parameters] <message>

Arguments 论点

[parameters] - The additional parameters.
[parameters] -附加参数。
<message> - The message to be shown.
<message> -要显示的消息。

Supported parameters 支持的参数

  • silent 沉默
  • fadein
  • stay 呆
  • fadeout
  • radius 半径
  • world 世界

Actionbar Broadcast 新闻中心

Sends an actionbar message to everyone on the server.
向服务器上的每个人发送操作栏消息。

Format 格式

/tm abc [parameters] <message>
/tm abroadcast [parameters] <message>

Supported parameters 支持的参数

  • silent 沉默
  • radius 半径
  • world 世界

Message 消息

Sends a title message to the specified player, put <nl> or {nl} or %nl% inside of the message, to add a subtitle.
向指定的播放器发送标题消息,在消息中放入 <nl> 或 {nl} 或 %nl% ,以添加字幕。

Format 格式

/tm msg [parameters] <player> <message>
/tm message [parameters] <player> <message>

Arguments 论点

[parameters] - The additional parameters.
[parameters] -附加参数。
<player> - The player the message should be sent to.
<player> -消息应该发送到的玩家。
<message> - The message to be shown.
<message> -要显示的消息。

支持的参数

  • silent 沉默
  • fadein
  • stay 呆
  • fadeout

电子邮件

向指定的播放器发送动作栏消息。

格式

/tm amsg [parameters] <player> <message>
/tm amessage [parameters] <player> <message>

Arguments 论点

[parameters] -附加参数。
<player> -消息应该发送到的玩家。
<message> -要显示的消息。

支持的参数

  • silent 沉默

记分板切换

打开和关闭记分板。

格式

/tm sb toggle

动画

列出当前加载的所有动画。

格式

/tm animations

脚本

列出当前加载的所有脚本。

格式

/tm scripts

重新加载

显示配置文件、动画和脚本。

Format 格式

/tm reload

参数

沉默

[QUOTE]
对投票命令很有用,因为控制台不会再收到垃圾邮件。
[/QUOTE]
使命令不会返回任何响应文本。

格式

-silent

淡入

设置标题淡入到屏幕上所需的淡入时间(以刻度为单位)。

格式

-fadein=ticks

例如

-fadein=20 将淡入时间设置为20个刻度(1秒)。

设置标题在屏幕上停留的时间(以刻度为单位)。

格式

-stay=ticks

例如

-stay=40 将停留时间设置为40个刻度(2秒)。

淡出

设置标题从屏幕上淡出所需的淡入时间(以刻度为单位)。

格式

-fadeout=ticks

例如

-fadeout=20 将淡入时间设置为20个刻度(1秒)。

世界

限制广播到给定的世界,如果没有选择世界并且发送者是玩家,则世界将是玩家当前所在的世界。

格式

-world
-world=worldname

例如

-world=PlotWorld

半径

将广播限制在发送玩家周围的给定块数。如果发送者不是玩家,则此参数不做任何事情。

格式

-radius=radius

例如

-radius=10
[/SPOILER]


[SPOILER="权限"]

Permissions 权限

Command permissions 命令权限

[TABLE]
[TR]
[TH]Permission 许可[/TH]
[TH]Command 命令[/TH]
[/TR]
[TR]
[TD]titlemanager.command.reload[/TD]
[TD]/tm reload[/TD]
[/TR]
[TR]
[TD]titlemanager.command.broadcast[/TD]
[TD]/tm bc[/TD]
[/TR]
[TR]
[TD]titlemanager.command.message[/TD]
[TD]/tm msg /tm消息[/TD]
[/TR]
[TR]
[TD]titlemanager.command.abroadcast[/TD]
[TD]/tm abc[/TD]
[/TR]
[TR]
[TD]titlemanager.command.amessage[/TD]
[TD]/tm amsg[/TD]
[/TR]
[TR]
[TD]titlemanager.command.animations[/TD]
[TD]/tm animations /tm动画[/TD]
[/TR]
[TR]
[TD]titlemanager.command.scripts[/TD]
[TD]/tm scripts /tm脚本[/TD]
[/TR]
[TR]
[TD]titlemanager.command.scoreboard[/TD]
[TD]/tm sb toggle /tm sb切换[/TD]
[/TR]
[/TABLE]

Other permissions 其他权限

[TABLE]
[TR]
[TH]Permission 许可[/TH]
[TH]Description 描述[/TH]
[/TR]
[TR]
[TD]titlemanager.update.notify[/TD]
[TD]The update checker will message all players with this permission.
更新检查器将通知所有玩家此权限。[/TD]
[/TR]
[/TABLE]
[/SPOILER]

[SPOILER="动画"]

Animations 动画

Animations spark life to your server and are easy to create, just by adding a few lines to a text file or two.
动画为您的服务器注入活力,并且很容易创建,只需向一两个文本文件中添加几行即可。

Creating an animation 创建动画


The animation files are located in the plugins/TitleManager/animations directory.
动画文件位于 plugins/TitleManager/animations 目录中。

Need help creating your animations? Try out the animation generator [URL='https://tarkan.dev/tmgenerator']here[/URL].
需要帮助创建您的动画?在这里尝试动画生成器。

Naming 命名

The name of the animation comes from whatever comes before .txt in the file name.
动画的名称来自文件名中 .txt 之前的任何内容。

Timings 定时


The fadeIn and fadeOut values will act as the stay value when used outside of titles.
fadeIn 和 fadeOut 值在标题之外使用时将充当 stay 值。
All lines (frames) in an animation start with [fadeIn;stay;fadeOut]
动画中的所有行(帧)都以 [fadeIn;stay;fadeOut] 开头
Here's what these values do for each type of animation:
以下是这些值对每种动画类型的作用:

fadeIn

The amount of ticks it takes for the title to fade into view.
标题淡入视图所需的刻度数。

stay 呆

The amount of ticks the title stays on screen.
标题在屏幕上停留的刻度数。

fadeOut

The amount of ticks it takes for the title to fade out of view.
标题淡出视图所需的时间。

Example 例如

Below you see an example of two animations on the player list and their corresponding files.
下面你可以看到播放器列表中的两个动画和它们对应的文件的例子。[IMG alt="Example animation"]https://i.imgur.com/KFgC8V1.gif[/IMG]
left-to-rightright-to-left
left-to-right.txt[0;5;0]&7&b-&7---------
[0;2;0]&7-&b-&7--------
[0;2;0]&7--&b-&7-------
[0;2;0]&7---&b-&7------
[0;2;0]&7----&b-&7-----
[0;2;0]&7-----&b-&7----
[0;2;0]&7------&b-&7---
[0;2;0]&7-------&b-&7--
[0;2;0]&7--------&b-&7-
[0;5;0]&7---------&b-&7
[0;2;0]&7--------&b-&7-
[0;2;0]&7-------&b-&7--
[0;2;0]&7------&b-&7---
[0;2;0]&7-----&b-&7----
[0;2;0]&7----&b-&7-----
[0;2;0]&7---&b-&7------
[0;2;0]&7--&b-&7-------
[0;2;0]&7-&b-&7--------
[/SPOILER]



PLAINTEXT
${shine:[fade-in,stay,fade-out][primary-color,secondary-color]My text}




.
PLAINTEXT
${marquee:[fade-in,stay,fade-out][marquee-width]My text}



${text_write:[fade-in,stay,fade-out]My text}


${text_delete:[fade-in,stay,fade-out]My text}


${count_down:[fade-in,stay,fade-out]10}


${count_up:[fade-in,stay,fade-out]10}
10 是将被计数的金额
资源操作
前往下载
将跳转至进入云盘/官网下载!请知晓
作者信息
Avatar
玄易同志

网站的个人号~