轻松格式化聊天内容。
LPC 是什么
我一直对创建聊天中的前缀和后缀着迷。然而,小时候我发现很难连接和配置那些用于格式化聊天的插件。
这就是为什么我创建了 LPC(原名 LuckPermsChat)——一个免费且简单的解决方案,用于处理你的聊天格式化,并连接到我认为是最好的权限插件:LuckPerms。
功能特性
- 支持 PlaceholderAPI
- 标准单行格式
- 使用 LP 上下文实现按世界/服务器区分格式
- 组别格式
- RGB 颜色代码
- 内置占位符
内置占位符
{world} = 世界名称
{prefix} = 用户的主前缀
{prefixes} = 按最高优先级排序的用户前缀列表
{name} = 玩家名称
{displayname} = 玩家昵称
{suffix} = 用户的主后缀
{suffixes} = 按最高优先级排序的用户后缀列表
{username-color} = 组别或玩家的用户名颜色
{message-color} = 组别或玩家的消息颜色
命令与权限
/lpc reload — 重载配置文件
lpc.reload — 允许用户使用重载命令
lpc.colorcodes — 允许用户在消息中使用颜色代码
lpc.rgbcodes — 允许用户在消息中使用 RGB 颜色代码
依赖项
安装方法
- 停止你的服务器。
- 下载并将插件
.jar 文件拖入你的 plugins 文件夹。
- 启动服务器以生成配置文件。
- 根据需要编辑
config.yml。
- 输入
/lpc reload 以重载插件。
视频设置指南
配置说明
这些仅作为示例。当然,你可以根据需要自由配置所有内容!
1. 仅前缀
config.yml
chat-format: "{prefix}{name}&r: {message}"
2. RGB 颜色代码
config.yml
chat-format: "{prefix}{name}&r: {message}"
3. 上下文使用
config.yml
chat-format: "{prefix}{name}&r: {message}"
4. 按组别区分消息颜色
config.yml
chat-format: "{prefix}{name}&r: {message-color}{message}"
5. 按玩家区分用户名颜色
config.yml
chat-format: "{prefix}{username-color}{name}&r: {message}"
6. PlaceholderAPI 使用
config.yml
chat-format: "%player_gamemode% {prefix}{name}&r: {message}"
7. 使用组别格式自定义 Unicode 前缀
config.yml
group-formats:
# default: "[default] {name}&r: {message}"
admin: "\uEffa &7{name}&r: {message}"
你需要一个自定义资源包来显示 Unicode 前缀。
你可以在此处下载我的示例资源包。
此外,这里有一段 YouTube 视频,解释了 Minecraft 中自定义字体是如何工作的。
常见问题
1. 如何在 LPC 中使用 DeluxeTags
/papi ecloud download DeluxeTags
/papi reload
- 将所需的任何占位符添加到 LPC 的
config.yml 中
- 你可以在此处找到这些占位符
- 对于标准标签,请使用
%deluxetags_tag% 占位符
- 记得输入
/lpc reload 以查看更改
如果你喜欢这个插件,请留下 ★★★★★ 好评。
本插件与 LuckPerms 无关。请勿向 LuckPerms 作者寻求此插件的帮助。
Format your chat with ease.
WHAT IS LPC
I've always been fascinated by creating prefixes and suffixes in chat. However, when I was a kid I found it difficult to connect and configure all of those plugins you need to format a chat.
That's why I've created LPC, formerly LuckPermsChat — a free and simple solution to handle your chat formatting, which connects to, in my opinion, the best permissions plugin: LuckPerms.
FEATURES
- PlaceholderAPI support
- Standard single line format
- Per world/server format using LP context
- Group formats
- RGB color codes
- Built-in placeholders
BUILT-IN PLACEHOLDERS
{world} = world name
{prefix} = user's primary prefix
{prefixes} = user's prefixes sorted by the highest priority
{name} = player name
{displayname} = player nickname
{suffix} = user's primary suffix
{suffixes} = user's suffixes sorted by the highest priority
{username-color} = username color for a group or a player
{message-color} = message color for a group or a player
COMMANDS & PERMISSIONS
/lpc reload — reloads the configuration file
lpc.reload — allows user to use reload command
lpc.colorcodes — allows user to use color codes in messages
lpc.rgbcodes — allows user to use RGB color codes in messages
DEPENDENCIES
INSTALLATION
- Stop your server.
- Download and drag the plugin
.jar file into your plugins folder.
- Start your server to generate config files.
- Edit
config.yml to your liking.
- Type
/lpc reload to reload the plugin.
VIDEO SETUP GUIDE
CONFIGURATION
These are only examples. Of course, you can configure everything up to you!
1. Only prefix
config.yml
chat-format: "{prefix}{name}&r: {message}"
2. RGB color codes
config.yml
chat-format: "{prefix}{name}&r: {message}"
3. Context usage
config.yml
chat-format: "{prefix}{name}&r: {message}"
4. Message color per group
config.yml
chat-format: "{prefix}{name}&r: {message-color}{message}"
5. Username color per player
config.yml
chat-format: "{prefix}{username-color}{name}&r: {message}"
6. PlaceholderAPI usage
config.yml
chat-format: "%player_gamemode% {prefix}{name}&r: {message}"
7. Custom Unicode prefix using group formats
config.yml
group-formats:
# default: "[default] {name}&r: {message}"
admin: "\uEffa &7{name}&r: {message}"
You'll need a custom resource pack to display a Unicode prefix.
You can download my example here.
Furthermore, here's a YouTube video, which explains how custom fonts in Minecraft work.
FAQ
1. How to use DeluxeTags with LPC
/papi ecloud download DeluxeTags
- Reload PAPI to make changes:
/papi reload
- Add whatever placeholders you need to LPC's
config.yml
- You can find the placeholders here
- For a standard tag, use the
%deluxetags_tag% placeholder
- Remember to type
/lpc reload to see changes
If you enjoy the plugin, please leave ★★★★★.
This plugin is not affiliated with LuckPerms. Please do not ask its author for help with this plugin.
评论 0
登录后参与评分
还没有评论,来抢沙发吧