diff options
Diffstat (limited to 'OpenSim/Region/Environment/Scenes/ScenePresence.cs')
-rw-r--r-- | OpenSim/Region/Environment/Scenes/ScenePresence.cs | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/OpenSim/Region/Environment/Scenes/ScenePresence.cs b/OpenSim/Region/Environment/Scenes/ScenePresence.cs index 0cc3a7e..f91913d 100644 --- a/OpenSim/Region/Environment/Scenes/ScenePresence.cs +++ b/OpenSim/Region/Environment/Scenes/ScenePresence.cs | |||
@@ -1233,6 +1233,25 @@ namespace OpenSim.Region.Environment.Scenes | |||
1233 | ControllingClient.OutPacket(kupack, ThrottleOutPacketType.Task); | 1233 | ControllingClient.OutPacket(kupack, ThrottleOutPacketType.Task); |
1234 | 1234 | ||
1235 | } | 1235 | } |
1236 | public void GrantGodlikePowers(LLUUID agentID, LLUUID sessionID, LLUUID token) | ||
1237 | { | ||
1238 | GrantGodlikePowersPacket respondPacket = new GrantGodlikePowersPacket(); | ||
1239 | GrantGodlikePowersPacket.GrantDataBlock gdb = new GrantGodlikePowersPacket.GrantDataBlock(); | ||
1240 | GrantGodlikePowersPacket.AgentDataBlock adb = new GrantGodlikePowersPacket.AgentDataBlock(); | ||
1241 | |||
1242 | adb.AgentID = agentID; | ||
1243 | adb.SessionID = sessionID; // More security | ||
1244 | |||
1245 | gdb.GodLevel = (byte)100; | ||
1246 | gdb.Token = token; | ||
1247 | //respondPacket.AgentData = (GrantGodlikePowersPacket.AgentDataBlock)ablock; | ||
1248 | respondPacket.GrantData = gdb; | ||
1249 | respondPacket.AgentData = adb; | ||
1250 | ControllingClient.OutPacket(respondPacket, ThrottleOutPacketType.Task); | ||
1251 | |||
1252 | |||
1253 | |||
1254 | } | ||
1236 | /// <summary> | 1255 | /// <summary> |
1237 | /// | 1256 | /// |
1238 | /// </summary> | 1257 | /// </summary> |