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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidscheduleSendMessage(String message, PluginChannel channel) Schedule sending a plugin message until a player joins the server.voidsendDirectedMessage(String message, PluginChannel channel, org.bukkit.plugin.Plugin plugin, String server) Send a plugin message directed to only one servervoidsendMessage(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:PluginMessageInterfaceSchedule 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:
scheduleSendMessagein 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:PluginMessageInterfaceSend a plugin message to all servers in specified network. Does not wait until a player joins this server. Data can be lost.- Specified by:
sendMessagein 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:PluginMessageInterfaceSend a plugin message directed to only one server- Specified by:
sendDirectedMessagein 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
-