From ce9c2ecac8aa41e5ff22203e5436a4596c14b370 Mon Sep 17 00:00:00 2001 From: Teravus Ovares Date: Fri, 14 Mar 2008 15:52:32 +0000 Subject: * You can leave godmode if you want now. * Fixed a compile error. --- OpenSim/Region/Environment/Scenes/ScenePresence.cs | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'OpenSim/Region/Environment/Scenes/ScenePresence.cs') diff --git a/OpenSim/Region/Environment/Scenes/ScenePresence.cs b/OpenSim/Region/Environment/Scenes/ScenePresence.cs index 1731cd9..fb0e836 100644 --- a/OpenSim/Region/Environment/Scenes/ScenePresence.cs +++ b/OpenSim/Region/Environment/Scenes/ScenePresence.cs @@ -1631,7 +1631,7 @@ namespace OpenSim.Region.Environment.Scenes /// 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 void GrantGodlikePowers(LLUUID agentID, LLUUID sessionID, LLUUID token) + public void GrantGodlikePowers(LLUUID agentID, LLUUID sessionID, LLUUID token, bool godStatus) { GrantGodlikePowersPacket respondPacket = new GrantGodlikePowersPacket(); GrantGodlikePowersPacket.GrantDataBlock gdb = new GrantGodlikePowersPacket.GrantDataBlock(); @@ -1640,7 +1640,17 @@ namespace OpenSim.Region.Environment.Scenes adb.AgentID = agentID; adb.SessionID = sessionID; // More security - gdb.GodLevel = (byte) 250; + if (godStatus) + { + gdb.GodLevel = (byte)250; + m_godlevel = 250; + } + else + { + gdb.GodLevel = (byte)0; + m_godlevel = 0; + } + gdb.Token = token; //respondPacket.AgentData = (GrantGodlikePowersPacket.AgentDataBlock)ablock; respondPacket.GrantData = gdb; -- cgit v1.1