OpenSim.Region.Framework.Scenes.ScenePresence.GrantGodlikePowers C# (CSharp) Метод

GrantGodlikePowers() публичный Метод

This allows the Sim owner the abiility to kick users from their sim currently. It tells the client that the agent has permission to do so.
public GrantGodlikePowers ( UUID agentID, UUID sessionID, UUID token, bool godStatus ) : void
agentID UUID
sessionID UUID
token UUID
godStatus bool
Результат void
        public void GrantGodlikePowers(UUID agentID, UUID sessionID, UUID token, bool godStatus)
        {
            if (godStatus)
            {
                // For now, assign god level 200 to anyone
                // who is granted god powers, but has no god level set.
                //
                UserAccount account = m_scene.UserAccountService.GetUserAccount(m_scene.RegionInfo.ScopeID, agentID);
                if (account != null)
                {
                    if (account.UserLevel > 0)
                        m_godLevel = account.UserLevel;
                    else
                        m_godLevel = 200;
                }
            }
            else
            {
                m_godLevel = 0;
            }

            ControllingClient.SendAdminResponse(token, (uint)m_godLevel);
        }
ScenePresence