fCraft.MessageBlockHandler.GetInstance C# (CSharp) Method

GetInstance() public static method

public static GetInstance ( ) : MessageBlockHandler
return MessageBlockHandler
        public static MessageBlockHandler GetInstance()
        {
            if ( instance == null ) {
                instance = new MessageBlockHandler();
                Player.Moved += new EventHandler<Events.PlayerMovedEventArgs>( Player_Moved );
                Player.PlacingBlock += new EventHandler<Events.PlayerPlacingBlockEventArgs>( Player_PlacingBlock );
            }
            return instance;
        }