summaryrefslogtreecommitdiffstats
path: root/MCServer/Plugins/ProtectionAreas/CommandHandlers.lua
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2013-06-10 08:47:03 +0200
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2013-06-10 08:47:03 +0200
commited06d13b5c2f07a67ef74a8aea6fc3e9d8b48ba8 (patch)
tree33e30f06c3ff8d89cf67f69271bdb23770ee86bb /MCServer/Plugins/ProtectionAreas/CommandHandlers.lua
parentFixed previous commit. (diff)
downloadcuberite-ed06d13b5c2f07a67ef74a8aea6fc3e9d8b48ba8.tar
cuberite-ed06d13b5c2f07a67ef74a8aea6fc3e9d8b48ba8.tar.gz
cuberite-ed06d13b5c2f07a67ef74a8aea6fc3e9d8b48ba8.tar.bz2
cuberite-ed06d13b5c2f07a67ef74a8aea6fc3e9d8b48ba8.tar.lz
cuberite-ed06d13b5c2f07a67ef74a8aea6fc3e9d8b48ba8.tar.xz
cuberite-ed06d13b5c2f07a67ef74a8aea6fc3e9d8b48ba8.tar.zst
cuberite-ed06d13b5c2f07a67ef74a8aea6fc3e9d8b48ba8.zip
Diffstat (limited to 'MCServer/Plugins/ProtectionAreas/CommandHandlers.lua')
-rw-r--r--MCServer/Plugins/ProtectionAreas/CommandHandlers.lua7
1 files changed, 7 insertions, 0 deletions
diff --git a/MCServer/Plugins/ProtectionAreas/CommandHandlers.lua b/MCServer/Plugins/ProtectionAreas/CommandHandlers.lua
index 4ed629ed8..bb7da77a9 100644
--- a/MCServer/Plugins/ProtectionAreas/CommandHandlers.lua
+++ b/MCServer/Plugins/ProtectionAreas/CommandHandlers.lua
@@ -293,6 +293,9 @@ function HandleRemoveUser(a_Split, a_Player)
-- Send confirmation
a_Player:SendMessage("Removed " .. UserName .. " from area " .. AreaID);
+ -- Reload all currently logged in players
+ ReloadAllPlayersInWorld(a_Player:GetWorld():GetName());
+
return true;
end
@@ -309,6 +312,10 @@ function HandleRemoveUserAll(a_Split, a_Player)
-- Remove the user from the DB
g_Storage:RemoveUserAll(a_Split[2], a_Player:GetWorld():GetName());
+
+ -- Reload all currently logged in players
+ ReloadAllPlayersInWorld(a_Player:GetWorld():GetName());
+
return true;
end