马上登录/注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?立即注册
x
本帖最后由 像素搬运菌 于 2024-5-28 23:23 编辑
一个简单的插件,允许全球跨服务器通信和消息传递,支持 PlaceholderAPI、LuckPerms、LiteBans、AdvancedBan、NetworkManager 和 Discord。
使用 PlaceholderAPI
您必须使用可在此处下载的 帮助插件。
将帮助程序插件拖动到要支持 PlaceholderAPI 的每个 Spigot/Paper/Bukkit 服务器。
只要安装了 PlaceholderAPI,就不需要在 Spigot/Paper/Bukkit 服务器上进行任何其他配置。
在代理配置的config.yml中将 use-helper 设置为 true。这将在您的 BungeeCord/Velocity 服务器中。
重新启动或重新加载插件!/spc-重新加载
对于 PlaceholderAPI 支持,帮助程序插件是必需的。此外,PlaceholderAPI 占位符只能用于 Minecraft 聊天消息。它不适用于加入/离开消息。
没有 Discord
只需将插件放在 BungeeCord/Velocity 的插件文件夹中,然后重新启动代理即可!
使用 Discord
转到“discord.com/developers”,然后选择“新建应用程序”。您可以选择所需的任何名称。
转到 OAuth2 部分。
转到 OAuth2 URL 生成器并为其指定机器人范围。
在“机器人权限”下,选择;
管理频道(必填:常规权限)
发送消息(必填:文本权限)
管理消息(必填:文本权限)
读取消息历史记录(必填:文本权限)
+ 您要添加的任何其他内容...
复制底部的“生成的 URL”。
将生成的 URL 粘贴到 Web 浏览器中。
邀请机器人加入服务器。
回到 discord.com/developers。
选择机器人。
单击机器人。
单击“重置令牌”并将令牌复制到安全的位置。
向下滚动到“特权网关意向”。
选择 SERVER MEMBER INTENT 和 MESSAGE CONTENT INTENT。
将插件放在 BungeeCord/Velocity 的 plugins 文件夹中。
完全启动服务器后,然后停止服务器。会有错误,这是正常的。
在生成的 ProxyChat/config.yml 文件中,粘贴机器人令牌并选择要将消息发送到的相应通道。
重新启动您的代理!
全球网络聊天
LuckPerms 支持
LiteBans 支持
AdvancedBan 支持
NetworkManager 支持
Discord 支持
Velocity/Waterfall/BungeeCord 支持
彩色聊天
跨服务器通信
PlaceholderAPI 支持
...还有更多!
config.yml # ==========================================================
# INFORMATION
# HEX Values are Supported
# Example: <#FFFFFF>Some text</#FFFFFF> this is a message!
# Supports Mini-Message/Legacy Color Codes
# ==========================================================
# True if you will be using Discord. The reload command does not work with this.
use-discord: false
# Discord Bot Token (IGNORE IF use_discord = false). The reload command does not work with this.
BOT-TOKEN: "TOKEN_HERE"
# Channel to send Discord messages to (IGNORE IF use_discord = false). The reload command does not work with this.
CHANNEL-ID: "GLOBAL_CHANNEL_ID"
bot-activity:
# Valid Types: PLAYING, STREAMING, LISTENING, WATCHING, COMPETING
type: "COMPETING"
text: "SimpleProxyChat by beanbeanjuice"
# The amount of seconds to check if a server is online/offline.
# Smaller numbers can cause errors. Beware.
server-update-interval: 3
# Use this if you want to change the default aliases.
# It MUST be the same name you have in your bungee/velocity config.
# Simply set it to disabled: disabled to disable it.
aliases:
ServerInConfigExample: ServerAliasExample
hub: Hub1
smp: smp1
# Whether to use the permission system.
# Some permissions (denoted with ➕) are always active even if this is false.
# simpleproxychat.read.chat - Read chat messages.
# simpleproxychat.read.join - Read join messages.
# simpleproxychat.read.leave - Read leave messages.
# simpleproxychat.read.fake - Read the fake join/leave messages. Players must also have the REAL join/leave permission.
# simpleproxychat.read.switch - Read switch messages.
# simpleproxychat.read.update - Read update messages. ➕
# simpleproxychat.toggle.chat - Toggle proxy chat for a single server. ➕
# simpleproxychat.toggle.chat.all - Toggle proxy chat for all servers. ➕
# simpleproxychat.reload - Reload the config. ➕
use-permissions: false
# Only messages that start with this character will be sent through the plugin.
# Set to '' to disable.
# Example: If it is set to '$', then when a player sends $hello, it will be sent through the proxy.
proxy-message-prefix: ''
# Whether to send if the statuses of the servers connected to the proxy when the proxy starts up.
# THIS IS FOR DISCORD MESSAGES ONLY.
use-initial-server-status: true
# Whether to send a fake join/leave message when vanishing/unvanishing.
use-fake-messages: true
# Format: https://docs.oracle.com/javase/8/docs/api/java/time/format/DateTimeFormatter.html
# Timezone: https://www.joda.org/joda-time/timezones.html
timestamp:
# If your server is prone to getting off-sync on the time you can use an API.
# WARNING: Using the API will make messages somewhat longer to send.
# Additionally, the maximum accuracy will only be up to 1 minute, rather than seconds.
use-api: false
format: "hh:mm a"
timezone: "America/Los_Angeles"
# True if you will be using the helper plugin.
use-helper: false
# DO NOT TOUCH THIS
file-version: 10
messages.yml
Code (YAML):
# ==========================================================
# INFORMATION
# HEX Values are Supported
# Example: <#FFFFFF>Some text</#FFFFFF> this is a message!
# Supports Mini-Message/Legacy Color Codes
# ==========================================================
# Prefix for the plugin. %plugin-prefix% usable anywhere.
plugin-prefix: "&8[<bold><rainbow>SimpleProxyChat&r&8]"
# Minecraft Stuff
minecraft:
join:
enabled: true
message: "&e%player% &ahas joined the network. (%server%)"
leave:
enabled: true
message: "&e%player% &chas left the network. (%server%)"
chat:
enabled: true
message: "&8[&3%server%&8] &e%player% &9» &7%message%"
switch:
enabled: true
default: "&e%player% &7moved from &c%from% &7to &a%to%&7."
no-from: "&e%player% &7moved &7to &a%to%&7."
discord:
enabled: true
message: "**%server%** %player% » %message%"
embed:
use: false
title: "[%server%] %player%"
message: "%message%"
color: "#FFC0CB"
use-timestamp: true
command:
no-permission: "%plugin-prefix% &cSorry, you do not have permission to run this command."
unknown: "%plugin-prefix% &cUnknown command."
must-be-player: "%plugin-prefix% &cYou must be a player to run this command."
reload: "%plugin-prefix% &aThe plugin has been successfully reloaded!"
chat-lock:
usage: "%plugin-prefix% &cCorrect usage is &a/spc-chat all lock/unlock &c or &a/spc-chat lock/unlock"
single:
locked: "%plugin-prefix% &6%server% &cwill no longer send proxy chat messages."
unlocked: "%plugin-prefix% &6%server% &awill now send proxy chat messages."
all:
locked: "%plugin-prefix% &cAll servers will no longer send proxy chat messages."
unlocked: "%plugin-prefix% &aAll servers will now send proxy chat messages."
# Discord Stuff
discord:
join:
enabled: true
message: "%player% has joined the network. (%server%)"
use-timestamp: true
leave:
enabled: true
message: "%player% has left the network. (%server%)"
use-timestamp: true
switch:
enabled: true
message: "%player% has switched from %from% to %to%."
use-timestamp: true
chat:
enabled: true
minecraft-message: "&8[&bDiscord&8] %role% &f%user% &9» &7%message%"
topic:
online: "There are %online% players online."
offline: "The proxy is offline."
proxy-status:
enabled: true
messages:
enabled: "✅ Proxy enabled!"
disabled: "⛔ Proxy disabled."
title: "Server Status"
message: "Status: "
online: "Online ✅"
offline: "Offline ⛔"
use-timestamp: true
# Console Stuff - Uses Minecraft Messages
console:
chat: true
join: true
leave: true
switch: true
discord-chat: true
server-status: true
# The message for any updates that are sent.
# The plugin-prefix is automatically appended to the beginning of this message.
update-message: "&7There is an update! You are on &c%old%. New version is &a%new%&7: &6%link%"
# DO NOT TOUCH THIS
file-version: 7
/spc-reload - 重新加载配置文件。
/spc-chat - 锁定/解锁聊天。
simpleproxychat.read.chat - 阅读聊天消息。
simpleproxychat.read.join - 阅读加入消息。
simpleproxychat.read.leave - 阅读留言。
simpleproxychat.read.fake - 读取虚假的加入/离开消息.也必须有真正的许可。
simpleproxychat.read.switch - 读取交换机消息。
simpleproxychat.read.update - 读取更新通知。
simpleproxychat.toggle.chat - 切换单个服务器的代理聊天.
simpleproxychat.toggle.chat.all - 切换所有服务器的代理聊天.
simpleproxychat.reload - 重新加载配置。
%server% - 当前连接的服务器。如果指定了别名,则使用别名。
%original_server% - 与 %server% 相同,但不使用别名。
%to% - 当前连接的服务器。如果指定了别名,则使用别名。
%original_to% - 与 %to% 相同,但不使用别名。
%from% - 玩家刚刚断开连接的服务器。如果指定了别名,则使用别名。
%original_from% - 与 %from% 相同,但不使用别名。
%player% - 玩家的 Minecraft 用户名。
%user% - 玩家的 Discord 用户名。
%nick% - 玩家的 Discord 昵称。
%role% - 玩家的 Discord 角色。
%prefix% - 玩家的前缀。仅限 LuckPerms
%suffix% - 玩家的后缀。仅限 LuckPerms
%message% - 玩家的消息。
%epoch% - 获取当前时间(以毫秒为单位)。格式可以像这样使用。例如 <t:%epoch%>。仅限 Discord
%time% - 与 %epoch% 类似,但使用config.yml中的特殊格式时区。
截至目前,消失支持仅在 BungeeCord/Waterfall 上可用。该插件仍将正常运行,但如果您进入消失状态,则它不会发送虚假的加入/离开消息。
为了使前缀和后缀正常工作,必须在代理上安装 LuckPerms。然后,您可以使用 %prefix% 和 %suffix%。
%epoch% 和时间戳仅在 Discord 上的某些地方有效。或者,您可以选择一些嵌入来使 use-timestamp: true 具有。可悲的是,这超出了我的控制范围......
SimpleProxyChat-0.4.2.jar
(9.14 MB, 下载次数: 20)
|