This plug-in needs to be installed in BungeeCord/Waterfall and subserver (Spigot/Paper).
Introduction:
Sometimes, we need to let spigot communicate with bungee to achieve some operations such as obtaining the server name, then this plug-in can be used.
Command:
/bungeechannel alert <message> - Send message to every player(Support utf-8)
/bungeechannel command <command> - Send command as the console
/bungeechannel reload - Reload config on spigot server.
Permission:
BungeeChannel.admin
Config:
none
PlaceholderAPI:
%bungeechannel_servername% - Current server name (in bungee's config).
%bungeechannel_queue% - The server queue where the current server is located(Need
ServerQueue).
Softdepend Plugins:
BungeeCord/Waterfall:
BungeeCommand,
BungeeHub,
ServerQueue.
Spigot/Paper:
PlaceholderAPI.
API:
Code (Java):
import
org.bukkit.entity.Player
;
import
cn.yistars.channel.bukkit.ChannelHook
;
public
interface BungeeChannelHook
{
public
static
void onRunCommand
(Player player,
String command
)
{
BungeeChannel.
onRunCommand
(Player player,
String command
)
;
}
public
static
void onRunAlert
(Player player,
String command
)
{
BungeeChannelManager.
sendAlertPluginMessage
(player, command
)
;
}
public
static
String getServername
(
)
{
BungeeChannel.
getServername
(
)
;
}
public
static
String getQueue
(
)
{
BungeeChannel.
getQueue
(
)
;
}
}
Note:
- It is strictly forbidden to decompile/modify this plugin without my permission.
- If you want to distribute this plug-in, please get my consent first.
注意:
- 未经我的允许,严禁反编译/修改此插件。
- 若想分发此插件,请先征得我的同意。
If you think the plugin is good, please leave your rating, thank you!