aboutsummaryrefslogtreecommitdiff
path: root/advtrains/copytool.lua
diff options
context:
space:
mode:
authorY. Wang <yw05@forksworld.de>2022-11-02 15:08:21 +0100
committerY. Wang <yw05@forksworld.de>2022-11-02 15:08:21 +0100
commit7dea2eba5816e1d7af7b1002c3b4f177ec9b15b5 (patch)
treef2bf25056ff8521bb64f21d937c16bad79ee82cd /advtrains/copytool.lua
parenta6fc6497e7f187f8fac1d72d826ac893b689f2f6 (diff)
downloadadvtrains-7dea2eba5816e1d7af7b1002c3b4f177ec9b15b5.tar.gz
advtrains-7dea2eba5816e1d7af7b1002c3b4f177ec9b15b5.tar.bz2
advtrains-7dea2eba5816e1d7af7b1002c3b4f177ec9b15b5.zip
Add helper for "insufficient privileges" messages
BREAKING: attrans is now implemented as a table with the __call metamethod instead of as a function
Diffstat (limited to 'advtrains/copytool.lua')
-rw-r--r--advtrains/copytool.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/advtrains/copytool.lua b/advtrains/copytool.lua
index 0b2aa52..c0af8e1 100644
--- a/advtrains/copytool.lua
+++ b/advtrains/copytool.lua
@@ -26,7 +26,7 @@ minetest.register_tool("advtrains:copytool", {
return itemstack
end
if not minetest.check_player_privs(placer, {train_operator = true }) then
- minetest.chat_send_player(pname, attrans("You don't have the train_operator privilege."))
+ minetest.chat_send_player(pname, attrans.nopriv("train_operator"))
return itemstack
end
if not minetest.check_player_privs(placer, {train_admin = true }) and minetest.is_protected(pointed_thing.under, placer:get_player_name()) then