Created
September 24, 2018 23:15
-
-
Save Crypnotic/ce469c2ce6a9bdd65ab23b50f8874bd9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Plugin(id = "mctest") | |
public class MCTestVelocity { | |
@Subscribe | |
public void onProxyInitialize(ProxyInitializeEvent event) { | |
IPipeline alpha = MessageChannelAPI.getPipelineRegistry().register("alpha"); | |
IPipeline bravo = MessageChannelAPI.getPipelineRegistry().register("bravo"); | |
alpha.onReceive(alpha::send); | |
bravo.onReceive(bravo::send); | |
} | |
@Subscribe | |
public void onPluginMessage(PluginMessageEvent event) { | |
System.out.println(event.getIdentifier()); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment