diff options
Diffstat (limited to '')
-rw-r--r-- | OpenSim/ApplicationPlugins/LoadRegions/LoadRegionsPlugin.cs | 22 |
1 files changed, 14 insertions, 8 deletions
diff --git a/OpenSim/ApplicationPlugins/LoadRegions/LoadRegionsPlugin.cs b/OpenSim/ApplicationPlugins/LoadRegions/LoadRegionsPlugin.cs index 48e988c..dd3f4b3 100644 --- a/OpenSim/ApplicationPlugins/LoadRegions/LoadRegionsPlugin.cs +++ b/OpenSim/ApplicationPlugins/LoadRegions/LoadRegionsPlugin.cs | |||
@@ -43,6 +43,8 @@ namespace OpenSim.ApplicationPlugins.LoadRegions | |||
43 | { | 43 | { |
44 | private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); | 44 | private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); |
45 | 45 | ||
46 | #region IApplicationPlugin Members | ||
47 | |||
46 | public void Initialise(OpenSimMain openSim) | 48 | public void Initialise(OpenSimMain openSim) |
47 | { | 49 | { |
48 | m_log.Info("[LOADREGIONS]: Load Regions addin being initialised"); | 50 | m_log.Info("[LOADREGIONS]: Load Regions addin being initialised"); |
@@ -66,14 +68,21 @@ namespace OpenSim.ApplicationPlugins.LoadRegions | |||
66 | 68 | ||
67 | for (int i = 0; i < regionsToLoad.Length; i++) | 69 | for (int i = 0; i < regionsToLoad.Length; i++) |
68 | { | 70 | { |
69 | m_log.Debug("[LOADREGIONS]: Creating Region: " + regionsToLoad[i].RegionName + " (ThreadID: " + Thread.CurrentThread.ManagedThreadId.ToString() + ")"); | 71 | m_log.Debug("[LOADREGIONS]: Creating Region: " + regionsToLoad[i].RegionName + " (ThreadID: " + Thread.CurrentThread.ManagedThreadId.ToString() + |
70 | openSim.CreateRegion(regionsToLoad[i], true); | 72 | ")"); |
73 | openSim.CreateRegion(regionsToLoad[i], true); | ||
71 | } | 74 | } |
72 | 75 | ||
73 | openSim.ModuleLoader.PostInitialise(); | 76 | openSim.ModuleLoader.PostInitialise(); |
74 | openSim.ModuleLoader.ClearCache(); | 77 | openSim.ModuleLoader.ClearCache(); |
75 | } | 78 | } |
76 | 79 | ||
80 | public void Close() | ||
81 | { | ||
82 | } | ||
83 | |||
84 | #endregion | ||
85 | |||
77 | public void LoadRegionFromConfig(OpenSimMain openSim, ulong regionhandle) | 86 | public void LoadRegionFromConfig(OpenSimMain openSim, ulong regionhandle) |
78 | { | 87 | { |
79 | m_log.Info("[LOADREGIONS]: Load Regions addin being initialised"); | 88 | m_log.Info("[LOADREGIONS]: Load Regions addin being initialised"); |
@@ -96,14 +105,11 @@ namespace OpenSim.ApplicationPlugins.LoadRegions | |||
96 | { | 105 | { |
97 | if (regionhandle == regionsToLoad[i].RegionHandle) | 106 | if (regionhandle == regionsToLoad[i].RegionHandle) |
98 | { | 107 | { |
99 | m_log.Debug("[LOADREGIONS]: Creating Region: " + regionsToLoad[i].RegionName + " (ThreadID: " + Thread.CurrentThread.ManagedThreadId.ToString() + ")"); | 108 | m_log.Debug("[LOADREGIONS]: Creating Region: " + regionsToLoad[i].RegionName + " (ThreadID: " + |
109 | Thread.CurrentThread.ManagedThreadId.ToString() + ")"); | ||
100 | openSim.CreateRegion(regionsToLoad[i], true); | 110 | openSim.CreateRegion(regionsToLoad[i], true); |
101 | } | 111 | } |
102 | } | 112 | } |
103 | } | 113 | } |
104 | |||
105 | public void Close() | ||
106 | { | ||
107 | } | ||
108 | } | 114 | } |
109 | } | 115 | } \ No newline at end of file |