예제 #1
0
        void OnChatMessage(ChatMessage message)
        {
            if (message.IsWhisper || string.IsNullOrEmpty(message.Service))
            {
                return;
            }

            PlayerModule playermodule = context.GetModule <PlayerModule>();
            Player       player       = playermodule.GetPlayer(message.Service, message.User);

            PlayerActiveTrigger?.Invoke(player.UserID);
        }
예제 #2
0
 void OnCommand(StreamCommand command)
 {
     PlayerActiveTrigger?.Invoke(context.GetModule <UserModule>().GetExistingUser(command.Service, command.User).ID);
 }