PersonalMOTD
一款允许你在服务器 MOTD(维护信息)中显示玩家名称和/或随机化公共 MOTD 的插件。你也可以为单个玩家设置专属的 MOTD。
版本:v2.4
该插件会在你的服务器的 MOTD 中向玩家自己显示其名称(即服务器列表页面上显示的消息!)
它使用 mySQL 或 yml(由你选择)来保存玩家的 IP 地址。一旦玩家至少登录过一次以保存 IP,它就会开始向你配置文件中定义的自定义 MOTD 展示,其中 %name% 会被替换为玩家的名字!你还可以仅为单个玩家设置特殊的 MOTD,这样只有他们能看到。
<hr>


功能:
配置文件说明:
- mySQL 设置询问基本信息
- 如果你想使用 MySQL(数据库),请将 Main.SQL.Enabled 设置为 true。
- 如果 mySQL 连接失败,它将回退使用 YML
- Motds.MOTD? - 在你希望显示玩家名字的地方使用 %name%
- Motds.Count - 更改此值以决定随机循环显示的 MOTD 数量。
- Custom MOTDs: - 如果在此处输入了玩家名称,则只有该玩家会看到此 MOTD。
- 想要颜色?在消息中使用颜色标签。
- 觉得更新检查很烦人?可以在配置文件中将其关闭。
颜色代码:
使用这些代码在 MOTD 中添加颜色。只需使用 & 符号后跟数字或字母即可。
示例:'&9欢迎来到服务器, &c%name%&9!' 将显示:欢迎来到服务器, 玩家名称!
&0
&1
&2
&3
&4
&5
&6
&7
&8
&9
&a
&b
&c
&d
&e <<- 黄色 (&e)
&f <<- 白色 (&f)
&l <<- 粗体
&m <<- 删除线(贯穿文本的线条)。
&n <<- 下划线
&o <<- 斜体
&k <<- “魔法”文本。(随机乱码效果。)
命令:
- '/personalmotd reload' - 重新加载插件的配置文件
权限:
| 权限节点 | 描述 | 默认值 |
| personalmotd.* | 访问以下所有权限。 | false |
| personalmotd.reload | 访问 '/personalmotd reload' 命令 | false |
| personalmotd.updatecheck | 如果已启用,则在加入时若检测到新版本,则在聊天中显示更新检查消息 | false |
在此查看完整的变更日志!
待办事项
喜欢这个插件吗?帮助我维持我的编程爱好!请考虑捐赠!
下面分别是 addemod(他负责保持插件更新)和 itsatacoshop(从头创建该插件的人)的捐赠方式。
捐赠
Addemod 的捐赠按钮。:)
itsatacoshop247 的按钮。
如果有问题或建议,请不要评论,而是提交工单!否则我可能看不到,或者忽略它。
PersonalMOTD
A plugin that will let you show player's name in the MOTD and/or randomize public motds of your server. You can also use motd to only one player.
Version: v2.4
This plugin will show a players name to themselves in the MOTD of your server (that's the message shown in the server list!)
It uses mySQL or yml (your choice) to save a players IP. Once the player has logged in at least once to save the IP, it will begin showing them a custom MOTD you define in the conifg, where %name% is replaced with the player's name! You can also set special MOTDs for just one player so that only they see it.
<hr>


Features:
- Easy config
- YML or mySQL support
- Custom MOTDs where %name% is replaced with a players name
- Can set a special MOTD on a player-by-player basis
- This plugin was tested on my server play.modnations.net and CookieSlap.net for over a month with an average of 50 players online, thought sometimes as many as 125 players. No issues were caused via this plugin.
- Colored MOTDs via using "&" - see colors here.
Config:
- mySQL settings ask the basics
- Set Main.SQL.Enabled to true if you want to use MySQL. (Database.)
- If mySQL connection fails, it will use YML
- Motds.MOTD? - Use %name% where you want the player's name to be
- Motds.Count - Change this to as many motds you want it randomize through.
- Custom MOTDs: - If a player is entered here, only they will see this motd.
- Want colors? Use the color tags in the message.
- Is the UpdateChecks annyoing? Turn them off in the config.
Color Codes:
Use these codes to add colors into the MOTD. Simply use the & symbol followed by the number or letter.
Example: '&9Welcome to the server, &c%name%&9!' would show: Welcome to the server, TheNameofThePlayer!
&0
&1
&2
&3
&4
&5
&6
&7
&8
&9
&a
&b
&c
&d
&e <<- Yellow (&e)
&f <<- White (&f)
&l <<- Bold
&m <<- Strike through line through the text.
&n <<- Underline
&o <<- Italic
&k <<- "Magic" text. (Random text.)
Commands:
- '/personalmotd reload' - Reload the plugin's config file
Permissions:
| Permission Nodes | Description | Default |
| personalmotd.* | Access all permissions below. | false |
| personalmotd.reload | Access to '/personalmotd reload' | false |
| personalmotd.updatecheck | Display updatecheck message in chat when join if available, if it's enabled | false |
See the full change-log here!
ToDo
Like the plugin? Help me keep my programming hobby alive! Please consider donating!
Below, to addemod(as he is keeping the plugin up) or itsatacoshop(that created it from the beginning).
Donate
Addemod's donation button. :)
itsatacoshop247's button.
Don't comment if you have an issue or suggestion, make a ticket instead! Otherwise I probably will not see it, or ignore it.
评论 0
登录后参与评分
还没有评论,来抢沙发吧