diff options
author | Y. Wang <yw05@forksworld.de> | 2022-11-02 15:08:21 +0100 |
---|---|---|
committer | Y. Wang <yw05@forksworld.de> | 2022-11-02 15:08:21 +0100 |
commit | 7dea2eba5816e1d7af7b1002c3b4f177ec9b15b5 (patch) | |
tree | f2bf25056ff8521bb64f21d937c16bad79ee82cd /advtrains/couple.lua | |
parent | a6fc6497e7f187f8fac1d72d826ac893b689f2f6 (diff) | |
download | advtrains-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/couple.lua')
-rw-r--r-- | advtrains/couple.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/advtrains/couple.lua b/advtrains/couple.lua index 3e6c432..87fa9ed 100644 --- a/advtrains/couple.lua +++ b/advtrains/couple.lua @@ -182,8 +182,8 @@ end function advtrains.safe_couple_trains(train1, t1_is_front, train2, t2_is_front, pname) if pname and not minetest.check_player_privs(pname, "train_operator") then - minetest.chat_send_player(pname, "Missing train_operator privilege") - return false + minetest.chat_send_player(pname, attrans.nopriv("train_operator", "couple trains")) + return false end local wck_t1, wck_t2 |