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.ListenerCommunicate with the spigot server
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringCHANNEL
-
Constructor Summary
Constructors Constructor Description SpigotMessage()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SpigotMessagegetInstance()CommunicationTaskGUIgetTask(java.lang.Class<? extends CommunicationTaskGUI> pClass)voidonPluginMessage(net.md_5.bungee.api.event.PluginMessageEvent ev)Will be executed if the spigot server sends a message to the Bungeecord servervoidregisterTask(CommunicationTaskGUI pTask)voidregisterTasks(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)
-
-