public static Set<String> readRegisteredChannels(PluginMessage pluginMessage){
  String channels=new String(pluginMessage.getData(),Charsets.UTF_8);
  String[] split=channels.split("\0");
  Set<String> channelSet=ImmutableSet.copyOf(split);
  return channelSet;
}

public static Set < String > readRegisteredChannels ( PluginMessage pluginMessage ) { String channels = new String ( pluginMessage . getData ( ) , Charsets . UTF_8 ) ; String [ ] split = channels . split ( "\0" ) ; Set < String > channelSet = ImmutableSet . copyOf ( split ) ; return channelSet ; }
gets the registered fml channels from the packet .
