Advertisement
Guest User

Untitled

a guest
Feb 23rd, 2020
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. @Plugin(name="Alb Hybrid",version = "1.0",id="albhyb")
  2. public class Main {
  3.  
  4. public static SimpleNetworkWrapper network;
  5.  
  6.  
  7.  
  8.  
  9.  
  10. @Inject
  11. private Logger log;
  12.  
  13. public static Main instance;
  14.  
  15.  
  16. @Listener
  17. public void preInit(GamePreInitializationEvent event){
  18. instance=this;
  19.  
  20.  
  21.  
  22. }
  23.  
  24. @Listener
  25. public void onServerStart(GameStartedServerEvent event){
  26. network= NetworkRegistry.INSTANCE.newSimpleChannel("albidnetwork");
  27. network.registerMessage(PacketTest.Handler.class,PacketTest.class,0, Side.SERVER);
  28.  
  29.  
  30.  
  31. }
  32.  
  33.  
  34.  
  35.  
  36.  
  37.  
  38.  
  39.  
  40. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement