Skip to content

Instantly share code, notes, and snippets.

@Crypnotic
Created September 24, 2018 23:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Crypnotic/b9b76cb480359d843b4842f5417146db to your computer and use it in GitHub Desktop.
Save Crypnotic/b9b76cb480359d843b4842f5417146db to your computer and use it in GitHub Desktop.
public class MCTestBungee extends Plugin implements Listener {
@Override
public void onEnable() {
IPipeline alpha = MessageChannelAPI.getPipelineRegistry().register("alpha");
IPipeline bravo = MessageChannelAPI.getPipelineRegistry().register("bravo");
alpha.onReceive(alpha::send);
bravo.onReceive(bravo::send);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment