summaryrefslogtreecommitdiffstats
path: root/MCServer/Plugins/ProtectionAreas/ProtectionAreas.lua
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--MCServer/Plugins/ProtectionAreas/ProtectionAreas.lua12
1 files changed, 8 insertions, 4 deletions
diff --git a/MCServer/Plugins/ProtectionAreas/ProtectionAreas.lua b/MCServer/Plugins/ProtectionAreas/ProtectionAreas.lua
index 744ea7e9c..a8219edf7 100644
--- a/MCServer/Plugins/ProtectionAreas/ProtectionAreas.lua
+++ b/MCServer/Plugins/ProtectionAreas/ProtectionAreas.lua
@@ -9,6 +9,9 @@
--- Prefix for all messages logged to the server console
PluginPrefix = "ProtectionAreas: ";
+--- Bounds for the area loading. Areas less this far in any direction from the player will be loaded into cPlayerAreas
+g_AreaBounds = 48;
+
@@ -27,10 +30,11 @@ function Initialize(a_Plugin)
InitializeCommandHandlers();
-- We might be reloading, so there may be players already present in the server; reload all of them
- local function ReloadPlayers(a_World)
- ReloadAllPlayersInWorld(a_World:GetName());
- end
- cRoot:Get():ForEachWorld(ReloadPlayers);
+ cRoot:Get():ForEachWorld(
+ function(a_World)
+ ReloadAllPlayersInWorld(a_World:GetName());
+ end
+ );
return true;
end