summaryrefslogtreecommitdiffstats
path: root/MCServer/Plugins/ProtectionAreas/HookHandlers.lua
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2013-06-11 11:55:46 +0200
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2013-06-11 11:55:46 +0200
commit30924db5081f8c2322c1de81e6ff34cfe491aeee (patch)
treeafe70634d8bc2ec814122d86329a756b3fc05266 /MCServer/Plugins/ProtectionAreas/HookHandlers.lua
parentProtectionAreas: usernames are now handled case-insensitive (diff)
downloadcuberite-30924db5081f8c2322c1de81e6ff34cfe491aeee.tar
cuberite-30924db5081f8c2322c1de81e6ff34cfe491aeee.tar.gz
cuberite-30924db5081f8c2322c1de81e6ff34cfe491aeee.tar.bz2
cuberite-30924db5081f8c2322c1de81e6ff34cfe491aeee.tar.lz
cuberite-30924db5081f8c2322c1de81e6ff34cfe491aeee.tar.xz
cuberite-30924db5081f8c2322c1de81e6ff34cfe491aeee.tar.zst
cuberite-30924db5081f8c2322c1de81e6ff34cfe491aeee.zip
Diffstat (limited to 'MCServer/Plugins/ProtectionAreas/HookHandlers.lua')
-rw-r--r--MCServer/Plugins/ProtectionAreas/HookHandlers.lua8
1 files changed, 4 insertions, 4 deletions
diff --git a/MCServer/Plugins/ProtectionAreas/HookHandlers.lua b/MCServer/Plugins/ProtectionAreas/HookHandlers.lua
index db552067c..18fd4fa03 100644
--- a/MCServer/Plugins/ProtectionAreas/HookHandlers.lua
+++ b/MCServer/Plugins/ProtectionAreas/HookHandlers.lua
@@ -85,14 +85,14 @@ function OnPlayerLeftClick(a_Player, a_BlockX, a_BlockY, a_BlockZ, a_BlockFace,
-- Set the coords in the CommandState
GetCommandStateForPlayer(a_Player):SetCoords1(a_BlockX, a_BlockZ);
- a_Player:SendMessage("Coords1 set as {" .. a_BlockX .. ", " .. a_BlockZ .."}.");
+ a_Player:SendMessage(string.format(g_Msgs.Coords1Set, a_BlockX, a_BlockZ));
return true;
end;
-- Check the player areas to see whether to disable this action
local Areas = g_PlayerAreas[a_Player:GetUniqueID()];
if not(Areas:CanInteractWithBlock(a_BlockX, a_BlockZ)) then
- a_Player:SendMessage("You are not allowed to dig here!");
+ a_Player:SendMessage(g_Msgs.NotAllowedToDig);
return true;
end
@@ -119,14 +119,14 @@ function OnPlayerRightClick(a_Player, a_BlockX, a_BlockY, a_BlockZ, a_BlockFace,
if (cConfig:IsWand(a_Player:GetEquippedItem())) then
-- Set the coords in the CommandState
GetCommandStateForPlayer(a_Player):SetCoords2(a_BlockX, a_BlockZ);
- a_Player:SendMessage("Coords2 set as {" .. a_BlockX .. ", " .. a_BlockZ .."}.");
+ a_Player:SendMessage(string.format(g_Msgs.Coords2Set, a_BlockX, a_BlockZ));
return true;
end;
-- Check the player areas to see whether to disable this action
local Areas = g_PlayerAreas[a_Player:GetUniqueID()];
if not(Areas:CanInteractWithBlock(a_BlockX, a_BlockZ)) then
- a_Player:SendMessage("You are not allowed to build here!");
+ a_Player:SendMessage(g_Msgs.NotAllowedToBuild);
return true;
end