void OnNewClient(OpenSim.Framework.IClientAPI client)
        {
            // Use our convenience method below to get the client name, then send them a modal alert message
            // we use our m_ExampleConfig for the message - we can set that in the ini
            client.SendAgentAlertMessage(String.Format("Hello! {0}! {1}", GetClientName(client), m_ExampleMessage), true);

            m_log.InfoFormat("[ExampleModule]: NewClient {0} @ {1}", client.Name, client.RemoteEndPoint.ToString());
        }
Пример #2
0
        void HandleOnMakeRootAgent(ScenePresence obj)
        {
            ScenePresence sp = (ScenePresence)obj;

            OpenSim.Framework.IClientAPI client = sp.ControllingClient;

            client.SendAgentAlertMessage(String.Format("Welcome to my sim!"), true);
            client.Kick("too late bud");
        }
Пример #3
0
        void HandleOnMakeRootAgent(ScenePresence obj)
        {
            ScenePresence sp = (ScenePresence)obj;

            OpenSim.Framework.IClientAPI client = sp.ControllingClient;

            // Use our convenience method below to get the client name, then send them a modal alert message
            // we use our m_ExampleConfig for the message - we can set that in the ini
            client.SendAgentAlertMessage(String.Format("Hello! {0}! {1}", GetClientName(client), m_ExampleMessage), true);

            m_log.InfoFormat("[ExampleModule]: RootAgent {0} @ {1}", client.Name, client.RemoteEndPoint.ToString());
        }