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); }
void OnCommand(StreamCommand command) { PlayerActiveTrigger?.Invoke(context.GetModule <UserModule>().GetExistingUser(command.Service, command.User).ID); }