Advertisement
Guest User

MCForge Plugin API 3.0

a guest
Dec 31st, 2011
192
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.32 KB | None | 0 0
  1. public override void Load(bool startup)
  2. {
  3.     OnPlayerConnectEvent.Register(temp, Priority.Normal, this);
  4. }
  5. public void temp(Player p)
  6. {
  7.     //code here
  8. }
  9.  
  10. or
  11.  
  12. public override void Load(bool startup)
  13. {
  14.    
  15.     OnPlayerConnectEvent.Register(delegate
  16.     {
  17.         //code here
  18.     }, Priority.Normal, this);
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement