信息
EzTips 是一款轻量级插件,允许你添加自定义提示语,并按你希望的间隔在聊天中广播。你可以自定义所有设置,包括广播前缀、其颜色以及提示文本本身的颜色和格式。
在我最近的一次版本更新中,我添加了命令,无需编辑 tips.txt 文件即可在服务器中添加、编辑、删除和列出提示!
配置文件非常简单易用,添加自定义提示也同样轻松。

安装
将插件放入你的 plugins 文件夹并重启服务器。
现在你可以编辑位于插件配置文件夹中的 config.yml 文件和 tips.txt 文件。之后无需重启服务器,只需运行 /tipreload 命令来重新加载配置和提示即可!
每个提示应独占一行,格式如下:
这是一条提示。
这是一条带有 §f§l颜色 和 粗体 格式的提示。§r
配置文件如下所示,易于理解:
// EzTips 插件配置
// 显示提示的间隔时间(分钟)
Interval: 20
// 提示消息中显示的前缀
前缀: '随机提示:'
// 前缀的颜色
// 可选值: BLACK, DARK_BLUE, DARK_GREEN, DARK_AQUA, DARK_RED, DARK_PURPLE, GOLD, GRAY, DARK_GRAY,
# BLUE, GREEN, AQUA, RED, LIGHT_PURPLE, YELLOW, WHITE
颜色: RED
所有命令共用一个权限。
tips.admin
颜色与格式
§0: 黑色 - §1: 深蓝色 - §2: 深绿色 - §3: 深青色(蓝绿色)
§4: 深红色 - §5: 深紫色 - §6: 金色 - §7: 灰色
§8: 深灰色 - §9: 蓝色 - §a: 绿色 - §b: 青色(青蓝色)
§c: 红色 - §d: 淡紫色(品红)- §e: 黄色 - §f: 白色
§l: 粗体 - §o: 斜体 - §n: 下划线
§m: 删除线 - §k: 乱码(随机字符)
§r: 重置格式
命令
/tipadmin list
(列出所有已存储的提示)
/tipadmin edit <#> <New Text>
(将第 # 条提示编辑为新文本)
/tipadmin add <New Tip Text>
(添加一条包含指定文本的新提示)
/tipadmin del <#>
(删除编号为 # 的提示)
/tipreload
(重新加载提示)
故障排除
如果出现以下提示:RANDOM TIP: No tips available.
这意味着 tips.txt 未能正确生成。
要修复此问题,只需进入 plugins/EzTips 文件夹并创建一个 tips.txt 文件即可。
Info
EzTips is a lightweight plugin that allows you to add customized tips that are broadcast in chat at whatever interval you would like. It allows you to customize everything from the broadcast prefix, it's color, and the color and formatting of the tip text itself.
The most rcecent version update I have included commands for adding, editing, deleting and listing tips in the server without having to edit the tips.txt file!
The configuration is nice and simple, as is adding custom tips.

Installation
Drop the plugin in your plugins folder and restart the server.
You can now edit the config file and the tips.txt file in the plugins configuration folder. No need to restart your server afterwards, just run the the /tipreload command to reload the config and tips!
Each tip should have it's own line like follows:
This is a Tip.
This is a Tip with §f§lCoLoR and BOLD Formatting.§r
The config file looks as follows, and is easy to understand
// Configuration for EzTips Plugin
// Interval in minutes for displaying tips
Interval: 20
// Prefix displayed in tip messages
Prefix: 'RANDOM TIP:'
// Color of Prefix
// Possible values: BLACK, DARK_BLUE, DARK_GREEN, DARK_AQUA, DARK_RED, DARK_PURPLE, GOLD, GRAY, DARK_GRAY,
# BLUE, GREEN, AQUA, RED, LIGHT_PURPLE, YELLOW, WHITE
Color: RED
There is one Permission for all of the commands.
tips.admin
Color and Formatting
§0: Black - §1: Dark Blue - §2: Dark Green - §3: Dark Aqua (Teal)
§4: Dark Red - §5: Dark Purple - §6: Gold - §7: Gray
§8: Dark Gray - §9: Blue - §a: Green - §b: Aqua (Cyan)
§c: Red - §d: Light Purple (Magenta) - §e: Yellow - §f: White
§l: Bold - §o: Italic - §n: Underlined
§m: Strikethrough - §k: Obfuscated (random characters)
§r: Reset Formatting
Commands
/tipadmin list
(lists all the tips on file)
/tipadmin edit <#> <New Text>
(edits the tip # to the new text)
/tipadmin add <New Tip Text>
(adds a new tip with the text)
/tipadmin del <#>
(deletes the tip numbered #)
/tipreload
(reloads tips)
Troubleshooting
If you get the message: RANDOM TIP: No tips available.
This means the tips.txt did not generate properly.
To fix this just go into your plugins/EzTips folder and create a tips.txt
评论 0
登录后参与评分
还没有评论,来抢沙发吧