Class BukkitPluginMessageInterface
java.lang.Object
org.sgrewritten.stargate.network.proxy.BukkitPluginMessageInterface
- All Implemented Interfaces:
PluginMessageInterface
A wrapper to the bungeecord plugin message sender
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
scheduleSendMessage
(String message, PluginChannel channel) Schedule sending a plugin message until a player joins the server.void
sendDirectedMessage
(String message, PluginChannel channel, org.bukkit.plugin.Plugin plugin, String server) Send a plugin message directed to only one servervoid
sendMessage
(String message, PluginChannel channel, org.bukkit.plugin.Plugin plugin) Send a plugin message to all servers in specified network.
-
Constructor Details
-
BukkitPluginMessageInterface
public BukkitPluginMessageInterface()
-
-
Method Details
-
scheduleSendMessage
Description copied from interface:PluginMessageInterface
Schedule sending a plugin message until a player joins the server. Will usePluginMessageInterface.sendMessage(java.lang.String, org.sgrewritten.stargate.property.PluginChannel, org.bukkit.plugin.Plugin)
to send the message.- Specified by:
scheduleSendMessage
in interfacePluginMessageInterface
- Parameters:
message
-The message to send
channel
-Stargate channel of the message
-
sendMessage
public void sendMessage(String message, PluginChannel channel, org.bukkit.plugin.Plugin plugin) throws IOException Description copied from interface:PluginMessageInterface
Send a plugin message to all servers in specified network. Does not wait until a player joins this server. Data can be lost.- Specified by:
sendMessage
in interfacePluginMessageInterface
- Parameters:
message
-The plugin message to send
channel
-The stargate channel to send the message in
plugin
-A plugin (necessary for bukkit api)
- Throws:
IOException
-If unable to send the message
-
sendDirectedMessage
public void sendDirectedMessage(String message, PluginChannel channel, org.bukkit.plugin.Plugin plugin, String server) throws IOException Description copied from interface:PluginMessageInterface
Send a plugin message directed to only one server- Specified by:
sendDirectedMessage
in interfacePluginMessageInterface
- Parameters:
message
-The plugin message to send
channel
-The stargate channel to send the message in
plugin
-A plugin (necessary for bukkit api)
server
-The server to send this message to
- Throws:
IOException
-If unable to send the message
-