This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
MainConsole.Instance.Commands.AddCommand("fix missing region owner", "fix missing region owner", "Attempts to fix missing region owners in the database.", delegate(string[] cmd)
MainConsole.Instance.Error("[LocalGridConnector] Cannot fix missing owner for regions in Estate "+estateID+", could not get estate settings.");
}elseif (es.EstateOwner==UUID.Zero)
{
MainConsole.Instance.Error("[LocalGridConnector] Cannot fix missing owner for regions in Estate "+estateID+", Estate Owner is also missing.");
}
if (es==null||es.EstateOwner==UUID.Zero)
{
++estateFail;
continue;
}
estateOwnerIDs[estateID] =es.EstateOwner;
}
if (estateFail>0)
{
if (estateFail==borkedByEstate.Count)
{
MainConsole.Instance.Error("[LocalGridConnector] "+borked.Count+" regions found with missing owners, could not locate any estate settings from IEstateConnector plugin.");
return;
}
else
{
MainConsole.Instance.Error("[LocalGridConnector] "+borked.Count+" regions found with missing owners, could not locate estate settings for "+estateFail+" estates.");
MainConsole.Instance.Error("[LocalGridConnector] Failed to fix missing region for "+region.RegionName+" ("+region.RegionID+")");
++storeFail;
}else{
++storeSuccess;
borked.Remove(region);
}
}
}
if (storeFail>0)
{
MainConsole.Instance.Error("[LocalGridConnector] "+borkedCount+" regions found with missing owners, fix failed on "+storeFail+" regions, fix attempted on "+storeSuccess+" regions.");
}
elseif (storeSuccess!=borked.Count)
{
MainConsole.Instance.Error("[LocalGridConnector] "+borkedCount+" regions found with missing owners, fix attempted on "+storeSuccess+" regions.");
}
else
{
MainConsole.Instance.Info("[LocalGridConnector] All regions found with missing owners should have their owners restored.");
@@ -299,9 +411,11 @@ public uint Count(uint estateID, RegionFlags flags)
}
publicboolStore(GridRegionregion)
{
List<string> keys=newList<string>();
List<object> values=newList<object>();
{
if (region.EstateOwner==UUID.Zero)
{
MainConsole.Instance.Error("[LocalGridConnector] Attempt to store region with owner of UUID.Zero detected:"+ (newSystem.Diagnostics.StackTrace()).GetFrame(1).ToString());
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters