SimpleGlobalChat
GitHub | 未来链接将放置于此
本插件与 SimpleVoiceChat 无关
适用于 Minecraft Spigot/Paper/Purpur/Folia 的插件,支持可自定义的全局/本地/私有/管理员聊天、忽略/取消忽略以及窥视功能
画廊中的所有图片均取自同一服务器
插件主要使用的语言为俄语(ru),但您可以在配置文件中将其更改为英语(eng)
若要更改显示消息的内容,请查看 lang 目录中的 ru 或 eng yml 文件
我根据自己的需求编写了这个插件,并添加了我认为最有用的功能。如果你认为该插件缺少某些功能,欢迎提出建议!
功能
帮助命令
使用此命令查看所有可用命令
命令:/chathelp
全局聊天
在消息前加上 "!" 的消息将发送给所有在线玩家,例如:"!Hello World"
本地聊天
其他消息将发送给以发送者为中心、半径为 n 个方块范围内的玩家(默认范围为 50 个方块)
私聊消息
命令:/msg 玩家昵称> 消息内容>
别名:[m, tell, w, т, м, message, ц, write]
回复
向最近发送私聊消息的玩家回复
命令:/r <消息>
别名:[reply, р, к, куздн]
忽略/取消忽略
玩家可以忽略来自特定玩家的私聊消息
命令:/ignore <玩家昵称>
别名:[ign, шптщку, игнор]
命令:/unignore <玩家昵称>
别名:[unign, гтшптщку, неигнор]
间谍模式
拥有权限的玩家可以看到其他玩家的私人消息。
命令:/spy
管理员聊天
可切换,启用后仅拥有 simpleglobalchatplugin.adminchat 权限的玩家可在此模式下查看消息。
命令:/adm-chat
申诉
普通玩家可发送仅管理员(拥有 simpleglobalchatplugin.adminchat 权限的玩家)可见的消息。
命令:/appeal <msg>
别名:[фззуфд, обращение]
自定义加入/离开/死亡消息
可配置(详见下方“配置”部分)
支持十六进制颜色
此插件不仅支持 Minecraft 颜色代码 §0-f(也支持 &0-f),
还支持十六进制颜色!(例如:cdaf7)
配置
如果您不使用 placeholderapi,请将其关闭。
use-placeholderapi: true
您可以将其更改为英文。
language: "ru"
你可以关闭或稍微更改这些设置
events:
custom-join:
toggle: true
message: "§2[+] §f{player} присоединился к серверу"
custom-quit:
toggle: true
message: "§c[-] §f{player} покинул сервер"
custom-death:
toggle: true
message: "§8{death_message}"
聊天配置,你可以开启/关闭它们,并更改在不同聊天中显示的消息内容
chat:
global:
toggle: true
prefix: "[G]"
name-color: "§f"
message-color: "§f"
placeholder-prefix: "%luckperms_prefix%" #可以留空 / You can leave it clear
placeholder-suffix: "%luckperms_suffix%"
world-prefix:
enabled: true
format: "§8[{world}] " # world — 将被替换为世界名称
msgformat: "{world-color}{prefix} §r{placeholder-prefix}{name-color}{player} §7>> {message-color}{message}"
local:
toggle: true
radius: 50
prefix: "[L]"
name-color: "§f"
message-color: "§7"
placeholder-prefix: "%luckperms_prefix%"
world-prefix:
enabled: true
format: "§8[{world}] "
msgformat: "§7{prefix} §r{placeholder-prefix}{name-color}{player} §7>> {message-color}{message}"
admin:
toggle: true
prefix: "[A-Chat]"
name-color: "§f"
message-color: "§f"
placeholder-prefix: "%luckperms_prefix%"
world-prefix:
enabled: false
format: "§8[{world}] "
msgformat: "§d{prefix} §r{placeholder-prefix}{name-color}{player} §7>> {message-color}{message}"
appeal:
toggle: true
prefix: "[&#f75eabAPPEAL§8]"
name-color: "§f"
message-color: "§f"
placeholder-prefix: "%luckperms_prefix%"
world-prefix:
enabled: false
format: "§8[{world}] "
msgformat: "§8{prefix} §r{placeholder-prefix}{name-color}{player} §7>> {message-color}{message}"
spy:
toggle: true
prefix: "[SPY] [✉]"
name-color: "§b"
message-color: "§7"
receiver-prefix: ""
receiver-color: "§e"
placeholder-prefix: "%luckperms_prefix%"
world-prefix:
enabled: true
format: "§8[{world}] "
msgformat: "§1{prefix} §r{placeholder-prefix}{name-color}{player} §b→ §r{receiver-prefix}{receiver-color}{receiver} §b>> {message-color}{message}"
private:
toggle: true
prefix: "[✉]"
name-color: "cdaf7"
receiver-prefix: "%luckperms_prefix%"
receiver-color: "&#f2e77e"
message-color: "§f"
placeholder-prefix: "%luckperms_prefix%"
world-prefix:
enabled: false
format: "§8[{world}] "
msgformat: "§3{prefix} §r{placeholder-prefix}{name-color}{sender} §b→ §r{receiver-prefix}{receiver-color}{receiver} §b>> {message-color}{message}"
语言目录
以 eng.yml 为例
使用命令时显示的消息
聊天:
通用:
非玩家: "§c只有玩家才能使用此命令。"
无权限: "§c你没有权限使用此命令。"
玩家离线: "§c该玩家不在线,或你输入了无效的昵称。"
空命令: "&c请提供参数。"
私聊:
自身: "§c你不能给自己发送私聊消息。"
无回复对象: "§c没有可回复的玩家。"
被忽略: "该玩家正在忽略你。消息未发送。"
间谍模式:
已启用: "间谍模式已启用。"
已禁用: "间谍模式已禁用。"
Admchat:
切换:
启用: "§6管理员聊天模式已启用。"
禁用: "§6管理员聊天模式已禁用。"
申诉:
非玩家: "§c只有玩家才能使用此命令。"
发送: "您的申诉已发送给管理员。"
忽略:
自身: "§c您无法忽略自己。"
成功: "§e您现在正在忽略 %player%。"
取消忽略: "&6您不再忽略 %player%。"
主命令:
帮助:
标题: "可用命令 (§e%current%§7/§e%total%§7):"
无效页码: "&c无效页码: &f%page%"
上一页: "◀ 上一页 |"
下一页: "下一页 ▶"
页码指示器: "第 %current% 页,共 %total% 页"
重载: "&a配置已重新加载。"
未知子命令: "&c未知子命令。请使用 &e/sgc help&c。"
使用 chathelp 命令时将显示以下消息:
commands:
msg:
usage: "/msg <玩家> <消息>"
description: "发送私密消息"
r:
usage: "/r <消息>"
description: "回复上一条私密消息"
appeal:
usage: "/appeal <消息>"
description: "向管理员聊天频道发送消息"
ignore:
usage: "/ignore <玩家>"
description: "忽略一名玩家"
unignore:
usage: "/unignore <玩家>"
description: "停止忽略某玩家"
spy:
usage: "/spy"
description: "切换间谍模式"
adm-chat:
usage: "/adm-chat"
description: "切换管理员聊天模式"
reload:
usage: "/sgc reload"
description: "重载插件配置"
# 与其他插件的联动
您可以在 [DiscordSRV](https://modrinth.com/plugin/discordsrv) 配置中使用 "global"、"admin"、"appeal" 频道,将消息发送到不同的 Discord 频道!
如果玩家拥有 [LuckPerms](https://modrinth.com/plugin/luckperms) 前缀,并且服务器上已安装 [PlaceholderAPI](https://github.com/PlaceholderAPI),则可以在聊天中显示。
SimpleGlobalChat
GitHub | Future Links will be placed here
This plugin is NOT associated with SimpleVoiceChat
Plugin for Minecraft Spigot/Paper/Purpur/Folia that enables customizable global/local/private/admin chats, ignore/unignore and spy functions
All images in Gallery were taken from the same server
Main used language in plugin is ru, but you can change it to eng in configuration file
To change content of showed messages check out lang directory and ru or eng yml files
I wrote this plugin according to my needs and added the most useful features in my opinion. If you think that plugin needs some features feel free to suggest!
Features
Help command
Use it to see all available commands
Command: /chathelp
Global chat
Messages that start with "!" before message will be sent to all online players, for instance: "!Hello World"
Local chat
Other messages will be sent to players in radius of n blocks (basic quantity is 50) from sender
Private messages
Command: /msg <player nickname> <msg>
Aliases: [m, tell, w, т, м, message, ц, write]
Reply
Reply to last player with whom private messages were sent
Command: /r <msg>
Aliases: [reply, р, к, куздн]
Ignore/Unignore
Players can ignore private messages from specific player
Command:/ignore <player nickname>
Aliases: [ign, шптщку, игнор]
Command: /unignore <player nickname>
Aliases: [unign, гтшптщку, неигнор]
Spy mode
Players with permissions can see other players private messages
Command: /spy
Admin chat
It is switchable and only players with simpleglobalchatplugin.adminchat permission can see messages in this mode if enabled
Command:/adm-chat
Appeal
Reqular players can send messages that only admins (players with simpleglobalchatplugin.adminchat permission can see)
Command:/appeal <msg>
Aliases: [фззуфд, обращение]
Custom Join/Quit/Death messages
Configurable (Read Configuration section bellow)
Hex colors support
This plugin supports not only minecraft color code §0-f (&0-f too)
But hex colors too! (For example: cdaf7)
Configuration
Turn off if you will not use placeholderapi
use-placeholderapi: true
You can change it to eng
language: "ru"
You can turn off or slightly change this settings
events:
custom-join:
toggle: true
message: "§2[+] §f{player} присоединился к серверу"
custom-quit:
toggle: true
message: "§c[-] §f{player} покинул сервер"
custom-death:
toggle: true
message: "§8{death_message}"
Config of chats, you can turn them on/off, and change what will be shown in the messages in different chats
chat:
global:
toggle: true
prefix: "[G]"
name-color: "§f"
message-color: "§f"
placeholder-prefix: "%luckperms_prefix%" #Можно оставить пустым/You can leave it clear
placeholder-suffix: "%luckperms_suffix%"
world-prefix:
enabled: true
format: "§8[{world}] " # world — будет заменён на имя мира
msgformat: "{world-color}{prefix} §r{placeholder-prefix}{name-color}{player} §7>> {message-color}{message}"
local:
toggle: true
radius: 50
prefix: "[L]"
name-color: "§f"
message-color: "§7"
placeholder-prefix: "%luckperms_prefix%"
world-prefix:
enabled: true
format: "§8[{world}] "
msgformat: "§7{prefix} §r{placeholder-prefix}{name-color}{player} §7>> {message-color}{message}"
admin:
toggle: true
prefix: "[A-Chat]"
name-color: "§f"
message-color: "§f"
placeholder-prefix: "%luckperms_prefix%"
world-prefix:
enabled: false
format: "§8[{world}] "
msgformat: "§d{prefix} §r{placeholder-prefix}{name-color}{player} §7>> {message-color}{message}"
appeal:
toggle: true
prefix: "[&#f75eabAPPEAL§8]"
name-color: "§f"
message-color: "§f"
placeholder-prefix: "%luckperms_prefix%"
world-prefix:
enabled: false
format: "§8[{world}] "
msgformat: "§8{prefix} §r{placeholder-prefix}{name-color}{player} §7>> {message-color}{message}"
spy:
toggle: true
prefix: "[SPY] [✉]"
name-color: "§b"
message-color: "§7"
receiver-prefix: ""
receiver-color: "§e"
placeholder-prefix: "%luckperms_prefix%"
world-prefix:
enabled: true
format: "§8[{world}] "
msgformat: "§1{prefix} §r{placeholder-prefix}{name-color}{player} §b→ §r{receiver-prefix}{receiver-color}{receiver} §b>> {message-color}{message}"
private:
toggle: true
prefix: "[✉]"
name-color: "cdaf7"
receiver-prefix: "%luckperms_prefix%"
receiver-color: "&#f2e77e"
message-color: "§f"
placeholder-prefix: "%luckperms_prefix%"
world-prefix:
enabled: false
format: "§8[{world}] "
msgformat: "§3{prefix} §r{placeholder-prefix}{name-color}{sender} §b→ §r{receiver-prefix}{receiver-color}{receiver} §b>> {message-color}{message}"
Lang directory
As example eng.yml
Messages that will be shown when using commands
Chat:
General:
NotPlayer: "§cOnly players can use this command."
NoRights: "§cYou do not have permission to use this command."
PlayerOffline: "§cThe player is offline or you entered an invalid nickname."
EmptyCommand: "&cPlease provide arguments."
Private:
Self: "§cYou can't send private messages to yourself."
NoReply: "§cThere is no player to reply to."
Ignoring: "The player is ignoring you. Message not sent."
SpyMode:
Enabled: "Spy mode enabled."
Disabled: "Spy mode disabled."
Admchat:
Toggle:
Enabled: "§6Admin chat mode enabled."
Disabled: "§6Admin chat mode disabled."
Appeal:
NotPlayer: "§cOnly players can use this command."
Sent: "Your appeal has been sent to the administrators."
Ignore:
Self: "§cYou can't ignore yourself."
Success: "§eYou are now ignoring %player%."
Unignored: "&6You are no longer ignoring %player%."
Main:
Help:
Title: "Available commands (§e%current%§7/§e%total%§7):"
InvalidPage: "&cInvalid page: &f%page%"
PreviousPage: "◀ Prev |"
NextPage: "Next ▶"
PageIndicator: "Page %current% of %total%"
Reloaded: "&aConfiguration reloaded."
UnknownCommand: "&cUnknown subcommand. Use &e/sgc help&c."
Messages that will be shown when chathelp command is used
commands:
msg:
usage: "/msg <player> <message>"
description: "Send a private message"
r:
usage: "/r <message>"
description: "Reply to the last private message"
appeal:
usage: "/appeal <message>"
description: "Send a message to the admin chat"
ignore:
usage: "/ignore <player>"
description: "Ignore a player"
unignore:
usage: "/unignore <player>"
description: "Stop ignoring a player"
spy:
usage: "/spy"
description: "Toggle spy mode"
adm-chat:
usage: "/adm-chat"
description: "Toggle admin chat mode"
reload:
usage: "/sgc reload"
description: "Reload plugin config"
Bonds with other plugins
You can use channels "global", "admin", "appeal" in DiscordSRV configuration to send messages to different discord channels!
If player have LuckPerms prefix and PlaceholderAPI is installed on server, it can be showed in chat
评论 0
登录后参与评分
还没有评论,来抢沙发吧