Class SpigotMessage
- java.lang.Object
-
- de.simonsator.partyandfriends.communication.SpigotMessage
-
- All Implemented Interfaces:
net.md_5.bungee.api.plugin.Listener
public class SpigotMessage extends java.lang.Object implements net.md_5.bungee.api.plugin.Listener
Communicate with the spigot server
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
CHANNEL
-
Constructor Summary
Constructors Constructor Description SpigotMessage()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SpigotMessage
getInstance()
CommunicationTaskGUI
getTask(java.lang.Class<? extends CommunicationTaskGUI> pClass)
void
onPluginMessage(net.md_5.bungee.api.event.PluginMessageEvent ev)
Will be executed if the spigot server sends a message to the Bungeecord servervoid
registerTask(CommunicationTaskGUI pTask)
void
registerTasks(CommunicationTaskGUI... pTasks)
-
-
-
Field Detail
-
CHANNEL
public static final java.lang.String CHANNEL
- See Also:
- Constant Field Values
-
-
Method Detail
-
getInstance
public static SpigotMessage getInstance()
-
onPluginMessage
public void onPluginMessage(net.md_5.bungee.api.event.PluginMessageEvent ev)
Will be executed if the spigot server sends a message to the Bungeecord server- Parameters:
ev
- The event of receiving a message from spigot
-
registerTask
public void registerTask(CommunicationTaskGUI pTask)
-
registerTasks
public void registerTasks(CommunicationTaskGUI... pTasks)
-
getTask
public CommunicationTaskGUI getTask(java.lang.Class<? extends CommunicationTaskGUI> pClass)
-
-