Class BungeecordCommunication
- java.lang.Object
-
- de.simonsator.partyandfriendsgui.communication.BungeecordCommunication
-
- All Implemented Interfaces:
org.bukkit.plugin.messaging.PluginMessageListener
public class BungeecordCommunication extends java.lang.Object implements org.bukkit.plugin.messaging.PluginMessageListener
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
CHANNEL
-
Constructor Summary
Constructors Constructor Description BungeecordCommunication()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static BungeecordCommunication
getInstance()
CommunicationTask
getTask(java.lang.Class<? extends CommunicationTask> pClass)
void
onPluginMessageReceived(java.lang.String channel, org.bukkit.entity.Player player, byte[] bytes)
Receive message from the BungeeCordvoid
registerTask(CommunicationTask pTask)
-
-
-
Field Detail
-
CHANNEL
public static final java.lang.String CHANNEL
- See Also:
- Constant Field Values
-
-
Method Detail
-
getInstance
public static BungeecordCommunication getInstance()
-
onPluginMessageReceived
public void onPluginMessageReceived(java.lang.String channel, org.bukkit.entity.Player player, byte[] bytes)
Receive message from the BungeeCord- Specified by:
onPluginMessageReceived
in interfaceorg.bukkit.plugin.messaging.PluginMessageListener
- Parameters:
channel
- The channelplayer
- The playerbytes
- The byte code
-
registerTask
public void registerTask(CommunicationTask pTask)
-
getTask
public CommunicationTask getTask(java.lang.Class<? extends CommunicationTask> pClass)
-
-