Interface PluginMessageInterface
- All Known Implementing Classes:
BukkitPluginMessageInterface
public interface PluginMessageInterface
Interface for sending plugin messages if necessary
-
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 dataMsg, PluginChannel pluginChannel, org.bukkit.plugin.Plugin plugin) Send a plugin message to all servers in specified network.
-
Method Details
-
scheduleSendMessage
Schedule sending a plugin message until a player joins the server. Will usesendMessage(java.lang.String, org.sgrewritten.stargate.property.PluginChannel, org.bukkit.plugin.Plugin)
to send the message.- Parameters:
message
-The message to send
channel
-Stargate channel of the message
-
sendMessage
void sendMessage(String dataMsg, PluginChannel pluginChannel, org.bukkit.plugin.Plugin plugin) throws IOException Send a plugin message to all servers in specified network. Does not wait until a player joins this server. Data can be lost.- Parameters:
dataMsg
-The plugin message to send
pluginChannel
-The stargate channel to send the message in
plugin
-A plugin (necessary for bukkit api)
- Throws:
IOException
-If unable to send the message
-
sendDirectedMessage
void sendDirectedMessage(String message, PluginChannel channel, org.bukkit.plugin.Plugin plugin, String server) throws IOException Send a plugin message directed to only one server- 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
-