Created
March 9, 2015 23:26
-
-
Save NiclasOlofsson/d76642ab0a58f8a54d12 to your computer and use it in GitHub Desktop.
This file contains hidden or 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] | |
public class PlayerLoginPlugin | |
{ | |
private static readonly ILog Log = LogManager.GetLogger(typeof (PlayerLoginPlugin)); | |
[PacketHandler] | |
public Package OnLogin(McpeLogin packet, Player newPlayer) | |
{ | |
Log.InfoFormat("Player {0} connected from {1}", newPlayer.Username, newPlayer.EndPoint.Address); | |
return packet; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment