ServerlistMOTD 允许你更改服务器列表中的 MOTD(欢迎语)。你可以为已知玩家设置自定义的 MOTD,或者用特殊的欢迎语来吸引新玩家的注意。该插件与旧版和新版的 Bukkit/Spigot **高度兼容**!现在也支持 HEX 颜色代码了!
该插件需要 ProtocolLib 才能启用所有功能 | 支持 Placeholder API
如果没有 ProtocolLib,所有与槽位相关的功能将无法工作。
GitHub 上的最新版本构建:*点击*
需要帮助或发现了 Bug?在此报告:*点击*
请保持友善,不要理所当然!
功能概览
NewbieMOTD - “你是新玩家吗?你会看到这个!”
直接在服务器列表中欢迎新玩家!
RegularMOTD - “你以前在这里玩过吗?你会看到这个!”
用特殊的 MOTD 欢迎老玩家!
RandomMOTD - “每次看到的 MOTD 都不同!”
在配置文件中添加项目符号,可以添加任意数量的 MOTD!
BanMOTD - “被禁言了?你会看到这个。” (仅限 Bukkit/Spigot)
为你所有被禁用的玩家显示 MOTD!它可以显示封禁原因和到期日期。
支持所有使用 Bukkit/Spigot 标准封禁功能的封禁插件(如 Essentials)、BanManager 和 MaxBans
WhitelistMOTD - “你有白名单?我有 MOTD!” (仅限 Bukkit/Spigot)
当配置中启用此功能且服务器开启了白名单时,将显示特殊的 MOTD!
HoverText - “鼠标悬停在槽位上以解锁酷炫的消息框!"
在配置文件中添加项目符号,可以添加任意行数的文本!
更改你的 槽位 和 在线玩家数!
你可以在配置文件中更改槽位数和在线玩家数。(这些数字显然是伪造的!)
VersionText - 用文本替换槽位!
使用个性化文本来让你的服务器与众不同!
使用示例:'&4&lMAINTENANCE' 来表示维护模式。
OutdatedClientText - 告知玩家应使用的版本
告诉玩家应该使用哪个版本的 Minecraft!
隐藏你的 槽位 和 在线玩家数! (仅限 Bukkit/Spigot)
想隐藏槽位和在线玩家数量吗?这将带来一些隐私保护!;-) 注意:必须禁用 HoverText 和所有其他槽位修改功能。
RestrictedMode - 让服务器看起来离线! (仅限 Bukkit/Spigot)
当 RestrictedMode 开启时,没有 OP/权限的玩家会在服务器列表中看到此内容。
当 RestrictedMode 开启时,拥有 OP/权限的玩家会在服务器列表中看到此内容。
SlotsPlusOne
SlotsPlusOne 根据当前在线玩家数量生成自定义的槽位数。常被大型服务器用于伪装成几乎满员的服务器。简单来说,就是在当前在线玩家数的基础上加一个槽位。
示例:10 名玩家在线 - 自定义数值:1 - 总共 11 个槽位 --> 10/11
示例:27 名玩家在线 - 自定义数值:5 - 32 个槽位 -- > 27/32
您可以设置最小和最大限制,以防止出现例如无人在线时仅保留 1 个槽位的情况。
OnlineMultiplier(在线乘数)
OnlineMultiplier 通过将实际在线人数乘以配置文件中设置的数值,来生成一个虚假的在线玩家计数!
当计算后的数值超过您的最小槽位数时,它会在原有基础上增加一个自定义数值来调整槽位数量!
当计算后的数值超过您的最大槽位数时,它将把在线玩家计数和槽位数量设置为最大值 -> 请参阅配置文件(示例 100/100)
示例(最小槽位:100):10 名玩家在线 - 乘以 5 - 50 名玩家在线 / 100 个槽位(50 名玩家 < 最小槽位 -> 槽位数等于最小槽位数,且不使用自定义数值进行调整)
示例(最小槽位:10)12 名玩家在线 - 乘以 2(24 名玩家 + 5 -> 自定义数值 ( = 槽位) - 24 名玩家在线 / 29 个槽位
示例(最大槽位:100):50 名玩家在线 - 乘以 3 - 100 名玩家在线 / 100 个槽位(因为 150 > 100)
颜色代码
| 颜色代码 |
输出效果 |
颜色代码 |
输出效果 |
| &0 |
黑色 |
&a |
绿色 |
| &1 |
深蓝色 |
&b |
青色 |
| &2 |
深绿色 |
&c |
红色 |
| &3 |
深青色 |
&d |
紫色 |
| &4 |
深红色 |
&e |
黄色 |
| &5 |
深紫色 |
&f |
白色 |
| &6 |
金色 |
&l |
加粗 |
| &7 |
灰色 |
&o |
斜体 |
| &8 |
深灰色 |
&k |
随机样式(Magic) |
| &9 |
蓝色 |
&n |
下划线 |
1.16+ 版本的 HEX 支持
- 单个 HEX 颜色:
<#FFEDBC>
- 渐变:
<g:#ED4264:#FFEDBC>(通过追加 :#CODE> 可以添加更多渐变色)
示例
<g:#ED4264:#FFEDBC>&l欢迎回来,<#FFEDBC>&o%player%! %line%<g:#22c1c3:#fdbb2d>现在是 %weather% &a%time%
<g:#ED4264:#FFEDBC:#22c1c3>欢迎新人!%line%<g:#22c1c3:#fdbb2d>现在是 &c%weather% %time%.
(随机-)MOTD 变量(新手)
| 变量 |
输出 |
| %time% |
返回配置中设置的世界的时间 |
| %weather% |
返回配置中设置的世界的天气 |
| %line% |
添加第二行 |
| %randomplayer% |
返回之前加入过的随机玩家名称 |
……以及 PlaceholderAPI!
由于 Newbies MOTD 是针对未知玩家的,因此不可用 %player% 和 %money%。ServerlistMOTD 必须将玩家名称及其 IP 注册到数据库中才能识别该玩家。(IP 记录)从技术上讲,没有其他方法可以获取玩家名称!
(随机-)MOTD 变量(常规玩家)
| 变量 |
输出 |
| %player% |
返回玩家名称 |
| %time% |
返回配置中设置的世界的时间 |
| %weather% |
返回配置中设置的世界的天气 |
| %line% |
添加第二行 |
| %money% |
返回玩家金钱(需要 Vault) |
| %randomplayer% |
返回之前加入过的随机玩家名称 |
……以及 PlaceholderAPI!
封禁 MOTD 变量
| 变量 |
输出 |
| %player% |
返回玩家名称 |
| %time% |
返回配置中设置的世界的时间 |
| %weather% |
返回配置中设置的世界的天气 |
| %line% |
添加第二行 |
| %randomplayer% |
返回之前加入过的随机玩家名称 |
| %reason% |
封禁原因 |
| %expdate% |
封禁过期日期(日、月、年组合 -> 06.06.2015) |
| %exptime% |
封禁过期时间(秒、分、时组合 -> 8:12:34) |
| %expsec% |
封禁过期时间的秒数 |
| %expmin% |
封禁过期时间的分钟数 |
| %exphour% |
封禁过期时间的小时数 |
| %expday% |
封禁过期日期的天数 |
| %expmonth% |
封禁到期月份 |
| %expyear% |
封禁到期年份
|
……以及 PlaceholderAPI!
你可以在配置文件中更改数值的位置和分隔符
(仅影响 %expdate% 与 %exptime%)
示例:将 DD/MM/YYYY(2015/9/12)改为 MM/DD/YY(9/12/15)
示例:将 hh:mm:ss 改为 hh:mm,以隐藏秒数显示
你可以将 / 或 : 替换为你想要的任何字符!(例如 - 或 * 或其他符号)
HoverText 变量
| %time% |
返回配置中设定世界的当前时间 |
| %weather% |
返回配置中设定世界的当前天气 |
| %line% |
添加第二行 |
| %randomplayer% |
返回之前加入过的随机玩家名称 |
……以及 PlaceholderAPI!
WhitelistMOTD 变量
| 变量 |
输出内容 |
| %player% |
返回玩家名称 |
| %time% |
返回配置中设定世界的当前时间 |
| %weather% |
返回配置中设定世界的当前天气 |
| %line% |
添加第二行 |
| %money% |
返回玩家的金钱数量(需要 Vault) |
| %randomplayer% |
返回之前加入过的随机玩家名称 |
……以及 PlaceholderAPI!
RestrictedMode 变量
| 变量 |
输出内容 |
| %player% |
返回玩家名称 |
| %time% |
返回配置中设定世界的当前时间 |
| %weather% |
返回配置中设定世界的当前天气 |
| %line% |
添加第二行 |
| %money% |
返回玩家的金钱数量(需要 Vault) |
| %randomplayer% |
返回之前加入过的随机玩家名称 |
……以及 PlaceholderAPI!
VersionText / OutdatedClientText 变量
| 变量 |
输出内容 |
| %randomnumber% |
返回配置中设定区间内的随机数字 |
| %fakeslots% |
返回配置中设定的虚假槽位数量 |
| %fakeonline% |
返回配置中设定的虚假在线人数 |
| %realslots% |
返回可用的真实槽位数量 |
| %realonline% |
返回当前在线玩家数量 |
| %slotsplusone% |
返回 SlotsPlusOne 功能的值 |
……以及 PlaceholderAPI!
命令与权限
适用于 Bungeecord: /bmotd - 权限: bmotd
| 命令 |
权限(或 OP) |
描述 |
|
/serverlist
别名: /sl, /smotd
|
serverlist |
帮助页面(命令列表) |
| /serverlist reload |
serverlist.reload |
重新加载配置(应用更改) |
| /serverlist restrictedmode |
serverlist.restrictedmode |
切换受限模式并踢出所有玩家 |
| |
serverlist.restrictedmode.join |
在开启受限模式时允许加入服务器 |
| |
serverlist.restrictedmode.nokick |
切换受限模式时不踢出玩家 |
| /serverlist update (旧版本中) |
ServerlistMOTD.update.runUpdate |
启动插件更新 |
| |
ServerlistMOTD.update.getNotified |
当有可用更新时,在加入服务器时通知你 |
| /serverlist randommotd |
serverlist.randommotd |
切换随机 MOTD 的开启/关闭状态 |
| /serverlist banmotd |
serverlist.banmotd |
切换封禁 MOTD 的开启/关闭状态 |
| /serverlist versiontext |
serverlist.versiontext |
切换版本文本的开启/关闭状态 |
|
/serverlist lastping <name>
(旧版本中)
|
ServerlistMOTD.serverlist.lastping |
显示该玩家的最后延迟(Ping)值
|
指标统计
ServerlistMOTD(低于 X! 版本)会收集匿名数据。你可以在 bStats 上查看所有信息:
Bungeecord: bStats *点击此处*
Spigot/Bukkit: bStats *点击此处*
由于 mcstats.org 非常不可靠,我已切换到 bStats。您可以在这里找到 ServerlistMOTD 1.0-6.2 的指标数据:mcstats.org (如果可用)
ServerlistMOTD 不会收集任何指标数据!
ServerlistMOTD allows you to change your MOTD in the serverlist. You can set custom MOTDs for known players or welcome new players with a special MOTD to get the players attention. This plugin is HIGHLY compatibile with old and new versions of Bukkit/Spigot! Now with HEX support as well!
The plugin requires ProtocolLib for all features |Placeholder API support
All slots related features won't work without ProtocolLib.
Newest builds on GitHub: *click*
Need help or found a bug? Report here: *click*
Please be friendly and not entitled!
Feature Overview
NewbieMOTD - "You are a new player? You're going to see this!"
Welcome new players directly in their serverlist!
RegularMOTD - "You played here before? You're going to see this!"
Welcome known players with a special motd!
RandomMOTD - "You're going to see a different MOTD each time!"
Add as many MOTDs as you want by adding bullet points in your config!
BanMOTD - "You're banned? You are going to see this." (Bukkit/Spigot only)
MOTD for all your banned players! This can display the ban reason and the expiration date.
Support for all Ban-Plugins that support Bukkits/Spigots standard ban function (like Essentials), BanManager and MaxBans
WhitelistMOTD - "You have a Whitelist? I have a MOTD!" (Bukkit/Spigot only)
This feature will show you a special MOTD when activated in config and a whitelist is active!
HoverText - "Mouseover your slots to unlock a cool Messagebox!"
Add as many lines as you want by adding bullet points in your config!
Change your Slots and OnlinePlayerCount!
You can change slots and online player in your config. (These numbers are obviously fake!)
VersionText - Replace your slots with a text!
Use your personal text to make your server different!
Example of use: '&4&lMAINTENANCE' to represent a maintenance mode.
OutdatedClientText - Let your players know which version to use
Tell your players what version of Minecraft to use!
Hide your Slots and OnlinePlayerCount! (Bukkit/Spigot only)
Do you want to hide your slots and online players? This will bring you some privacy! ;-) Note: HoverText and all other slots manipulations have to be disabled.
RestrictedMode - Your server appears to be offline! (Bukkit/Spigot only)
Players without OP/Permissions will see this in their serverlist when RestrictedMode is ON.
Players with OP/Permissions will see this in their serverlist when RestrictedMode is ON.
SlotsPlusOne
SlotsPlusOne generates a custom slots count based on your online players. Often used by big server to fake an almost full server. In simple terms, you basically add one slot to your current number of online players.
Example: 10 players online - custom number: 1 - 11 slots --> 10/11
Example: 27 players online - custom number: 5 - 32 slots -- > 27/32
You can create a min and max limit to prevent from having for example 1 slot when no one is online.
OnlineMultiplier
OnlineMultiplier generates a fake online players count by multiplying it with a number set in config!
When the multiplied number gets above your min slots, it will adjust the slots by adding a custom number to it!
When the multiplied number gets above your max slots, it will set the online player count and slots to your max value -> see config (Example 100/100)
Example (Min Slots: 100):10 players online - multiply by 5 - 50 players online/ 100 slots (50 Players < Min Slots -> Min Slots = Slots and no adjustment with the custom number)
Example (Min Slots: 10) 12 players online - multiply by 2(24 Players + 5 -> CustomNumber ( = Slots) - 24 players online/ 29 slots
Example (Max Slots: 100): 50 players online - multiply by 3 - 100 players online / 100 slots (because 150 > 100)
Color Codes
| ColorCode |
Output |
ColorCode |
Output |
| &0 |
Black |
&a |
Green |
| &1 |
Dark Blue |
&b |
Aqua |
| &2 |
Dark Green |
&c |
Red |
| &3 |
Dark Aqua |
&d |
Purple |
| &4 |
Dark Red |
&e |
Yellow |
| &5 |
Dark Purple |
&f |
White |
| &6 |
Gold |
&l |
Bold |
| &7 |
Gray |
&o |
Itallic |
| &8 |
Dark Gray |
&k |
Magic |
| &9 |
Blue |
&n |
Underlined |
HEX Support for 1.16+
- Single HEX color:
<#FFEDBC>
- Gradient:
<g:#ED4264:#FFEDBC> (add more colors to the gradient by appending :#CODE>)
Examples
<g:#ED4264:#FFEDBC>&lWelcome back, <#FFEDBC>&o%player%! %line%<g:#22c1c3:#fdbb2d>It's a %weather% &a%time%
<g:#ED4264:#FFEDBC:#22c1c3>Welcome newbie! %line%<g:#22c1c3:#fdbb2d>It's a &c%weather% %time%.
Variables for (Random-)MOTD (Newbies)
| Variable |
Output |
| %time% |
Returns time from world set in config |
| %weather% |
Returns weather from world set in config |
| %line% |
Add second line |
| %randomplayer% |
Returns random playername (joined before) |
... and PlaceholderAPI!
%player% & %money% are not available because the Newbies MOTD is for unknown players. ServerlistMOTD has to register the players name and its IP in a database to recognize the player. (IP-Logging) There is technically no other way to get the players name!
Variables for (Random-)MOTD (Regulars)
| Variable |
Output |
| %player% |
Returns player name |
| %time% |
Returns time from world set in config |
| %weather% |
Returns weather from world set in config |
| %line% |
Add second line |
| %money% |
Returns money from player (Vault needed) |
| %randomplayer% |
Returns random playername (joined before) |
... and PlaceholderAPI!
Variables for Ban MOTD
| Variable |
Output |
| %player% |
Returns player name |
| %time% |
Returns time from world set in config |
| %weather% |
Returns weather from world set in config |
| %line% |
Add second line |
| %randomplayer% |
Returns random playername (joined before) |
| %reason% |
Ban reason |
| %expdate% |
Ban expiration date (day, mont, year in one -> 06.06.2015) |
| %exptime% |
Ban expiration time (sec, min, h in one -> 8:12:34) |
| %expsec% |
Ban expiration seconds of time |
| %expmin% |
Ban expiration minutes of time |
| %exphour% |
Ban expiration hours of time |
| %expday% |
Ban expiration day of date |
| %expmonth% |
Ban expiration month of date |
| %expyear% |
Ban expiration year of date
|
... and PlaceholderAPI!
You can change the position and the separations between the values in the config
(affects ONLY %expdate% & %exptime%)
Example: Change DD/MM/YYYY (12/9/2015) to MM/DD/YY (9/12/15)
Example: Change hh:mm:ss to hh:mm if you don't want the seconds to be displayed
Change the / or : to whatever you want! (Could - or * or whatever)
Variables for HoverText
| %time% |
Returns time from world set in config |
| %weather% |
Returns weather from world set in config |
| %line% |
Add second line |
| %randomplayer% |
Returns random playername (joined before) |
... and PlaceholderAPI!
Variables for WhitelistMOTD
| Variable |
Output |
| %player% |
Returns player name |
| %time% |
Returns time from world set in config |
| %weather% |
Returns weather from world set in config |
| %line% |
Add second line |
| %money% |
Returns money from player (Vault needed) |
| %randomplayer% |
Returns random playername (joined before) |
... and PlaceholderAPI!
Variables for RestrictedMode
| Variable |
Output |
| %player% |
Returns player name |
| %time% |
Returns time from world set in config |
| %weather% |
Returns weather from world set in config |
| %line% |
Add second line |
| %money% |
Returns money from player (Vault needed) |
| %randomplayer% |
Returns random playername (joined before) |
... and PlaceholderAPI!
Variables for VersionText/ OutdatedClientText
| Variable |
Output |
| %randomnumber% |
Returns random number between a set interval from config |
| %fakeslots% |
Returns fake slots set in config |
| %fakeonline% |
Returns fake online count set in config |
| %realslots% |
Returns amount of real slots available |
| %realonline% |
Returns amount of players online |
| %slotsplusone% |
Returns value of SlotsPlusOne-Feature |
... and PlaceholderAPI!
Commands and Permissions
For Bungeecord: /bmotd - Permissions: bmotd
| Command |
Permissions (or OP) |
Description |
|
/serverlist
Alias: /sl, /smotd
|
serverlist |
Helpsite (Commands) |
| /serverlist reload |
serverlist.reload |
Reload Config (Apply Changes) |
| /serverlist restrictedmode |
serverlist.restrictedmode |
Toggle RestrictedMode & Kick all |
| |
serverlist.restrictedmode.join |
Join Server When RestrictedMode ON |
| |
serverlist.restrictedmode.nokick |
No Kick When RestrictedMode Toggled |
| /serverlist update (in old versions) |
ServerlistMOTD.update.runUpdate |
Initiate Plugin Update |
| |
ServerlistMOTD.update.getNotified |
Get Notified On Join When Update Available |
| /serverlist randommotd |
serverlist.randommotd |
Toggle RandomMOTD on/off |
| /serverlist banmotd |
serverlist.banmotd |
Toggle BanMOTD on/off |
| /serverlist versiontext |
serverlist.versiontext |
Toggle VersionText on/off |
|
/serverlist lastping <name>
(in old version)
|
ServerlistMOTD.serverlist.lastping |
Shows last ping from player
|
Metrics
ServerlistMOTD (below X!) collects anonymous data. You cann see everthing over here at bStats:
Bungeecord: bStats *click me*
Spigot/Bukkit: bStats *click me*
I switched to bStats as mcstats.org is very unreliable. You can find the Metrics for ServerlistMOTD 1.0-6.2 right here: mcstats.org (if available)
ServerlistMOTD doesn't collect Metrics!
评论 0
登录后参与评分
还没有评论,来抢沙发吧