diff options
author | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2013-06-07 22:19:36 +0200 |
---|---|---|
committer | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2013-06-07 22:19:36 +0200 |
commit | b244f206d5c9c22cdae6bdbef273faaa858af5d2 (patch) | |
tree | 16dfcfc73297a5c9b2c4230c20bedb701cce482f /MCServer/Plugins/ProtectionAreas/ProtectionAreas.lua | |
parent | ProtectionAreas: Fixed cCommandState's detection of not-selected (diff) | |
download | cuberite-b244f206d5c9c22cdae6bdbef273faaa858af5d2.tar cuberite-b244f206d5c9c22cdae6bdbef273faaa858af5d2.tar.gz cuberite-b244f206d5c9c22cdae6bdbef273faaa858af5d2.tar.bz2 cuberite-b244f206d5c9c22cdae6bdbef273faaa858af5d2.tar.lz cuberite-b244f206d5c9c22cdae6bdbef273faaa858af5d2.tar.xz cuberite-b244f206d5c9c22cdae6bdbef273faaa858af5d2.tar.zst cuberite-b244f206d5c9c22cdae6bdbef273faaa858af5d2.zip |
Diffstat (limited to '')
-rw-r--r-- | MCServer/Plugins/ProtectionAreas/ProtectionAreas.lua | 12 |
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
|