
感谢 Bukkit 论坛的 GusGold、Eats_Rainbows 和 drtshock 提供的帮助。
这可能并非原创想法,但我们是第一个同时集成双行(多行)支持的玩家!
升级至 Java 7!
描述:
你是否曾想过为你的服务器增添一些酷炫的美学效果?
我?没错,就是你!
厌倦了 ping 你的服务器,却只能看到无聊的“我的无聊服务器”MOTD(服务器标语)?
让我们改变这一切……
工作原理如下:
普通玩家 Joe 第一次 ping 你的服务器。
服务器 MOTD 会向他显示“欢迎来宾!”作为友好的问候。

你的新玩家首次进入游戏并四处探索。
第二天,“普通玩家 Joe”再次 ping 你的服务器,此时你原本无聊的 MOTD 已更改为“欢迎普通玩家 Joe!”。(或下方示例所示,仅用于说明目的)

普通玩家 Joe 现在感到自己很特别,他会告诉所有朋友来你的服务器游玩……
完 :P
配置:
请寻找名为 PPMOTD 的文件夹!
请参阅示例。
详情:
此插件极其轻量,占用内存低,且非常灵活。
使用方法如下:
步骤 1:下载。
步骤 2:将其放入你的 plugins 文件夹中。
步骤 3:启动服务器。
步骤 4:尽情玩耍 :D
注意:现已不兼容,且今后也将永远与其他任何 MOTD 插件不兼容。
指标统计:
此插件使用了 Hidendra 的 指标系统,这意味着以下信息将被收集并发送至 mcstats.org:
- 唯一标识符
- 服务器的 Java 版本
- 服务器处于离线模式还是在线模式
- 插件的版本
- 服务器的版本
- 操作系统版本/名称及架构
- CPU 核心数
- 在线玩家数量
- Metrics 版本
- 如果你愿意,可以通过 /plugins/PluginMetrics/config.yml 禁用统计数据收集。(但这可不太友好哦 :( )

工作原理:
当玩家首次 ping 服务器时,其 IP 地址会被记录到一个 HashMap 中。
当玩家加入服务器时,系统会获取他们的 IP 地址,并与之前记录的 IP 地址进行匹配。
颜色:
请看这张来自 Minecraft Wiki 的图片!
它展示了你的 MOTD(服务器描述)可用的颜色和格式。(除非你清楚自己在做什么,否则不建议使用 "k" 或其他非颜色格式!)
只需在 "&" 后面放上相应的字母或数字,然后保存即可。
_______________________________________________________
示例:
motd:
guest: '&b欢迎 &r&a&l访客!'
成员: '&b欢迎 &r&6&%p!
第二行: '&a欢迎来到 &r&5&n示例&r &6&n网络&r!
被封禁: '&4你 (%p) 已被封禁!
启用头像: true
自动更新器: true
我将仔细解释每项内容的含义。
启用头像表示开启或关闭头像生成,使用 true 或 false。
autosaveinterval(自动保存间隔)是插件保存其数据的频率,单位为秒。
注意:如果你不熟悉 MOTD 插件,这需要一些试错过程。
这一行:'&b欢迎 &r&a&l访客!'。
让我们分解一下它的含义。
&b = 蓝色
&r = 重置颜色格式
&a = 绿色
&l = 加粗
&b 定义起始颜色为蓝色。
当你想要切换颜色和格式时,使用 &r(也称为重置)。
当你想要使用其他格式符号,比如加粗下划线时,格式符必须位于颜色码之前,否则将不起作用。
例如,如果你想让某段文字加粗并显示为橙色,你应该写成 "&r&6&lWhatever"。
结果将会是。
Whatever
如果你想在某个位置放置玩家的用户名,可以使用 %p。
______________________________________________________________________________________

自动更新器:
顾名思义,它的作用就是自动更新。
它应该能正常工作,但也可能出问题。我的配置文件中有一行用于启用或禁用此功能的设置。
有关插件默认设置的详细信息,请查看配置文件部分。
已知问题:
如果你喜欢这个插件,请告诉你的朋友并广为传播!(或者给我的声誉 +1)
注意:如果你想将访客的 Ping 图片从史蒂夫换成其他样式,完全可以自行修改。目前我尚未提供相关支持功能。你只需使用 7-Zip 打开我的插件 JAR 文件,提取出 char.png,然后按需编辑图片(确保尺寸为 64x64 像素)。最后,将新图片(仍命名为 char.png)放回 JAR 文件中即可。大功告成!祝你玩得开心。

Credit goes to the help of GusGold, Eats_Rainbows, and drtshock of the Bukkit forums.
THIS MAY HAVE NOT BEEN AN ORIGINAL IDEA, BUT WE WERE THE FIRST TO INTEGRATE BOTH FACES AND MULTILINE SUPPORT!
Update to Java 7!
Description:
Have you ever wanted to add a cool aesthetic to your server?
Me? Yes You!
Tired of pinging your server, and seeing your boring "My Boring Server" MOTD?
Lets change that...
This is how it works:
Average Joe pings your server for the first time ever.
The server MOTD tells him, "Welcome Guest!", as a friendly greeting.

Your new player enters your game for the first time, and goes about his business.
The next day, "Average Joe" pings your server again, and your boring MOTD has been changed to say, "Welcome Average Joe!".
(or below, for example purposes)

Average Joe now feels special, and will tell all his friends to come play on your server...
THE END :P
Config:
Look for a folder named PPMOTD!
See examples.
Details:
This plugin is ultra-lite, uses low ram, and is very flexible.
To Make it Work:
Step 1: Download.
Step 2: Put it in your plugins folder.
Step 3: Start your server.
Step 4: Have fun :D
NOTE: Incompatible now, and will for ever be, with any other MOTD plugin.
Metrics:
This plugin utilizes Hidendra's plugin metrics system, which means that the following information is collected and sent to mcstats.org:
- A unique identifier
- The server's version of Java
- Whether the server is in offline or online mode
- The plugin's version
- The server's version
- The OS version/name and architecture
- The core count for the CPU
- The number of players online
- The Metrics version
- You can disable the stat collection via /plugins/PluginMetrics/config.yml if you wish. (But that is not very nice :( )

How It Works:
When the players pings the server for the first time, his/her IP address gets logged into a HashMap.
When the player joins the server, it grabs their IP address, and matches the two IP addresses.
Colors:
Just look at this picture from the Minecraft Wiki!
This shows the available colors and formats for your MOTD (Don't recommend "k", or any other formats except color, unless you
know what you are doing!
Just put the letter or number behind the "&", and save.
_______________________________________________________________________________________
Examples:
motd:
guest: '&bWelcome &r&a&lGuest!'
member: '&bWelcome &r&6&l%p!'
linetwo: '&ato the &r&5&nExample&r &6&nNetwork&r&a!'
banned: '&4You (%p) are banned!'
dofaces: true
autoupdater: true
I will explain what each thing means carefully.
Do faces means to enable or disabled face generation, use true or false.
The autosaveinterval is how often the plugin saves its data, in seconds.
NOTE: This will take some trial and error, if you are not familiar with MOTD plugins.
This line here, '&bWelcome &r&a&lGuest!'.
Let's take apart what it means.
&b = blue color
&r = reset color format
&a = green color
&l = bold
The &b defines that the color at the beginning is blue.
When you want to switch colors and formatting, you use &r (otherwise know as reset).
When you want to use another formatting symbol, like the bold underline. The formatter comes before the color, or it wont work.
When you want to for example make something bold and orange, you would do "&r&6&lWhatever"
Then it would turn out as.
Whatever
If you want to place the players username somewhere, you use %p.
_______________________________________________________________________________________

Auto-updater:
It does exactly what the name implies.
It should work, but it might not. There is a new line in my config file, for enabling or disabling.
Check the config file section for information about plugin defaults.
Bugs:
Tell your friends, spread the word if you like this! (or even +1 my reputation)
NOTE: If you want to change the guest ping picture from steve. Feel free too. I currently do not support the addition. Just open my plugin's jar in 7zip, and extract char.png. Edit the picture to your liking. Make sure it is 64 x 64. Then place the new picture (still named char.png) in the jar. You're done! Have fun.
评论 0
登录后参与评分
还没有评论,来抢沙发吧