mirror of
https://github.com/opensim/opensim.git
synced 2026-08-08 10:15:33 +08:00
If a Grid God teleports then include the Godlike teleport flag. This can affect the starting position in the destination region.
This commit is contained in:
committed by
Justin Clark-Casey (justincc)
parent
37d770f814
commit
9622e8ac72
@@ -67,6 +67,7 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
public delegate bool RunConsoleCommandHandler(UUID user, Scene requestFromScene);
|
||||
public delegate bool IssueEstateCommandHandler(UUID user, Scene requestFromScene, bool ownerCommand);
|
||||
public delegate bool IsGodHandler(UUID user, Scene requestFromScene);
|
||||
public delegate bool IsGridGodHandler(UUID user, Scene requestFromScene);
|
||||
public delegate bool IsAdministratorHandler(UUID user);
|
||||
public delegate bool EditParcelHandler(UUID user, ILandObject parcel, Scene scene);
|
||||
public delegate bool EditParcelPropertiesHandler(UUID user, ILandObject parcel, GroupPowers p, Scene scene);
|
||||
@@ -134,6 +135,7 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
public event RunConsoleCommandHandler OnRunConsoleCommand;
|
||||
public event IssueEstateCommandHandler OnIssueEstateCommand;
|
||||
public event IsGodHandler OnIsGod;
|
||||
public event IsGridGodHandler OnIsGridGod;
|
||||
public event IsAdministratorHandler OnIsAdministrator;
|
||||
// public event EditParcelHandler OnEditParcel;
|
||||
public event EditParcelPropertiesHandler OnEditParcelProperties;
|
||||
@@ -728,6 +730,21 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
return true;
|
||||
}
|
||||
|
||||
public bool IsGridGod(UUID user)
|
||||
{
|
||||
IsGridGodHandler handler = OnIsGridGod;
|
||||
if (handler != null)
|
||||
{
|
||||
Delegate[] list = handler.GetInvocationList();
|
||||
foreach (IsGridGodHandler h in list)
|
||||
{
|
||||
if (h(user, m_scene) == false)
|
||||
return false;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
public bool IsAdministrator(UUID user)
|
||||
{
|
||||
IsAdministratorHandler handler = OnIsAdministrator;
|
||||
|
||||
Reference in New Issue
Block a user