抱歉最近没有更新,我一直很忙。我已经重写了 Local Chat,现在它更加灵活、易于更新,并提供了更多选项。
功能
- 支持 Vault 经济系统(非必需)
- 可以添加任意数量的聊天模式
- 聊天模式拥有更多配置选项
- 全局配置文件选项
- 权限支持
- 格式化选项
使用方法
要将聊天模式添加到某个世界,请在 plugins/localchat 目录中创建一个配置文件(如果该目录不存在,启动服务器后插件会自动创建文件夹)。文件名必须与你希望启用这些模式的世界名称相匹配。例如,如果你有一个名为 localchat_world 的世界,那么配置文件应命名为 localchat_world.yml
文件必须以 yml 结尾!
接下来,你需要将每种想要在该世界使用的聊天模式添加到世界配置文件中,如下所示:
1 2 3 4 5 6 7 8 9 | local: default: true radius: 20 tag: "[Local]" format: "&4<tag>&2<name>:&f<text>" pay: 10 commands: - "local" - "l" |
可用的聊天模式选项
| 选项 | 描述 | 默认值 |
|---|---|---|
| default | 将此聊天模式标记为默认聊天。每个世界只能有一个默认聊天模式 | false |
| radius | 其他玩家能互相听到消息的距离 | 0 |
| tag | 插入到消息中的标签,如果未提供标签,则不会插入任何内容。 | |
| format | 消息的格式,如果提供此选项可能会覆盖其他插件的功能。可用选项包括:<tag>、<name>、<text>、<suffix>、<prefix> 以及 &1-9/a-f 用于颜色 | |
| pay | 使用此聊天模式的成本,需要安装 VAULT | |
| commands | 用于切换到此聊天模式的命令列表 | |
| global | 如果设置为 true,服务器上所有玩家在使用此模式时都能听到你的消息 | false |
| read_permission | 读取此聊天模式消息所需的权限,默认情况下无需权限。 | |
| write_permission | 向聊天模式发送消息所需的权限,默认情况下无需权限。 | |
| suffix | 与 format 配合使用,在消息末尾添加后缀 | |
| prefix | 与 format 配合使用,在消息开头添加前缀 |
命令
默认包含的命令有:
- /lc reload - 重新加载配置文件;需要权限节点 localchat.admin.reload
- /lc spy - 允许你看到所有发言,即使超出监听范围;需要权限节点 localchat.admin.spy
- /toggle <chatmode> - 切换至指定聊天模式,此后你所说的话都将以此模式发出(例如 /toggle shout 会一直让你以喊话模式说话,前提是你已配置了 shout 模式)
- /toggle - 清除当前的切换状态
- /c - toggle 的别名
- /chat - toggle 的别名
- /tg - toggle 的别名
- /to - toggle 的别名
Sorry about not updating this in a while, ive been busy. I have remade Local Chat, it is now more flexible, easier to update and offers more options
Features
- Economy support with vault (not required)
- Ability to add as many chat modes as you want
- More options for a chat mode
- Global config options
- Permissions support
- Formatting options
Usage
To add a chat mode to a world, create a config file in your plugins/localchat directory (if this directory doesnt exist, start the server and the plugin should create the folder). The file name has to match the name of the world you want the modes to be active on. So if you had a world called localchat_world, you would call the config file localchat_world.yml
The file must end in yml!
You now need to add each mode you want to the world configs, like this:
1 2 3 4 5 6 7 8 9 | local: default: true radius: 20 tag: "[Local]" format: "&4<tag>&2<name>:&f<text>" pay: 10 commands: - "local" - "l" |
Available Chat Mode Options
| option | description | default |
|---|---|---|
| default | This will mark this chatmode as the default chat. You can only have own default per world | false |
| radius | The distance in which other players can hear each other | 0 |
| tag | The tag to insert into the message, if no tag is provided it will not insert one. | |
| format | The format of the message, if this is provided it may override other plugins. Options include: <tag>, <name>, <text>, <suffix>, <prefix> and &1-9/a-f for colour | |
| pay | How much it costs to use this chat mode, requires VAULT | |
| commands | A list of commands to use this chatmode with | |
| global | If set to true everyone in the server can hear you when using this mode | false |
| read_permission | The permission to read messages from this chatmode, no permission is required by default. | |
| write_permission | The permission to write messages to a chatmode, no permission is required by default. | |
| suffix | Used with format to add a suffix to the message | |
| prefix | Used with format to add a prefix to the message |
Commands
Default commands that are included are:
- /lc reload - reloads the config files; require permission node localchat.admin.reload
- /lc spy - allows you to see anything that is said, even if outside the radius; requires permission node localchat.admin.spy
- /toggle <chatmode> - toggles a chatmode so that everything you say is in that mode (ie /toggle shout will always make you shouting if you have a shout mode)
- /toggle - clears your toggle
- /c - toggle alias
- /chat - toggle alias
- /tg - toggle alias
- /to - toggle alias
下载 Local Chat + OOC + Shout
下载 Local Chat + OOC + Shout
下载 Local Chat + OOC + Shout
下载 Local Chat + OOC + Shout
下载 Local Chat + OOC + Shout
下载 Local Chat + OOC + Shout
下载 Local Chat + OOC + Shout
下载 Local Chat + OOC + Shout
下载 Local Chat + OOC + Shout
下载 Local Chat + OOC + Shout
- 添加了后缀
- 添加了前缀
- 修复了仅存在默认聊天模式时的 bug
- 移除了模式的权限选项
- 为模式添加了 read_permission 选项
- 为模式添加了 write_permission 选项
- 为 toggle 命令添加了别名
- 使 toggle 命令接受命令作为参数
- 为格式添加了 <prefix> 和 <suffix> 选项
一切似乎都在正常工作;尚未测试权限功能。
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
插件
自定义你的Minecraft头像!
插件
专为 Velocity 打造的自制聊天插件,功能丰富——支持跨服群组/全局/私聊消息,并集成 LibertyBans 的禁言功能。
插件
在 Minecraft 中加入“最后一击”、“第二次机会”和“最后喘息”机制!从高处坠落时,你将拥有 0.5 HP 而不是直接死亡;当生命值较低时,增强你的能力。
插件
允许基岩版(Geyser)玩家使用自定义铁砧和锻造台配方。
插件
更快速的直线轨道矿车、链式连接列车、熔炉机车,以及原版红石信号!
插件
城镇现在可以要求建造具有特定功能的建筑
评论 0
登录后参与评分
还没有评论,来抢沙发吧