From e91b7c0521286fc36282d212ae901fa3dd5b89bd Mon Sep 17 00:00:00 2001 From: olliy <55839810+olliy1or@users.noreply.github.com> Date: Sat, 30 Jan 2021 17:58:19 +0500 Subject: [PATCH 01/18] Don't allow bad names This mod stops people from using bad usernames and allows people with ban priv add and remove names from ingame --- mods/other/disallowed_names/init.lua | 60 +++++++++++++++++++++++++ mods/other/disallowed_names/license.txt | 9 ++++ 2 files changed, 69 insertions(+) create mode 100644 mods/other/disallowed_names/init.lua create mode 100644 mods/other/disallowed_names/license.txt diff --git a/mods/other/disallowed_names/init.lua b/mods/other/disallowed_names/init.lua new file mode 100644 index 0000000..324db77 --- /dev/null +++ b/mods/other/disallowed_names/init.lua @@ -0,0 +1,60 @@ +local storage = minetest.get_mod_storage() +minetest.deserialize(storage:get_string("disallowed_names")) +disallowed_names=minetest.deserialize(storage:get_string("disallowed_names")) or {"sex","fuck","damn","drug","suicid"} + +minetest.register_on_prejoinplayer(function(name) + for k,v in pairs(disallowed_names) do + if string.find(string.lower(name),string.lower(v)) then + return "Your cannot use that username in this server, please change it and come back." + end + end +end) + +--adds a name to disallowed names +minetest.register_chatcommand("bdname_add", { + params = "", + privs = {ban= true}, + description = "adds a name to disallowed names", + func = function(name,param) + if param ~= "" then + table.insert(disallowed_names,tostring(param)) + minetest.chat_send_player(name, "added "..param.." to the list of banned words") + local serial_table = minetest.serialize(disallowed_names) + storage:set_string("disallowed_names", serial_table) + + else + minetest.chat_send_player(name, "You need to add a name\n/bdname_add ") + end + + end +}) + + +--removes a name from disallowed names +minetest.register_chatcommand("bdname_remove",{ + description = "removes a name from disallowed names", + params = "", + privs = {ban=true}, + func = function(name, param) + if param ~="" then + for k in pairs(disallowed_names) do + if param == disallowed_names[k] then + table.remove(disallowed_names,k) + end + end + storage:set_string("disallowed_names", minetest.serialize(disallowed_names)) + end + end + +}) + +--list disallowed names +minetest.register_chatcommand("bdname_list", { + description = "lists all the disallowed", + privs = {ban= true}, + func= function(name) + for k,v in pairs(disallowed_names) do + minetest.chat_send_player(name, disallowed_names[k]) + end + end +}) diff --git a/mods/other/disallowed_names/license.txt b/mods/other/disallowed_names/license.txt new file mode 100644 index 0000000..4668844 --- /dev/null +++ b/mods/other/disallowed_names/license.txt @@ -0,0 +1,9 @@ +Copyright 2021 olliy + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + + From 9bc4491f2c596caac7cd4449571b681f2a3eacc5 Mon Sep 17 00:00:00 2001 From: olliy <55839810+olliy1or@users.noreply.github.com> Date: Sat, 30 Jan 2021 18:09:22 +0500 Subject: [PATCH 02/18] Update init.lua --- mods/other/disallowed_names/init.lua | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/mods/other/disallowed_names/init.lua b/mods/other/disallowed_names/init.lua index 324db77..993ee01 100644 --- a/mods/other/disallowed_names/init.lua +++ b/mods/other/disallowed_names/init.lua @@ -20,32 +20,28 @@ minetest.register_chatcommand("bdname_add", { table.insert(disallowed_names,tostring(param)) minetest.chat_send_player(name, "added "..param.." to the list of banned words") local serial_table = minetest.serialize(disallowed_names) - storage:set_string("disallowed_names", serial_table) - - else + storage:set_string("disallowed_names", serial_table) + else minetest.chat_send_player(name, "You need to add a name\n/bdname_add ") end - end }) - --removes a name from disallowed names minetest.register_chatcommand("bdname_remove",{ description = "removes a name from disallowed names", params = "", privs = {ban=true}, func = function(name, param) - if param ~="" then + if param ~="" then for k in pairs(disallowed_names) do if param == disallowed_names[k] then table.remove(disallowed_names,k) - end + end end storage:set_string("disallowed_names", minetest.serialize(disallowed_names)) end end - }) --list disallowed names From 5abb26cb28b2899a57ba8e4b949ad4445952eb36 Mon Sep 17 00:00:00 2001 From: olliy <55839810+olliy1or@users.noreply.github.com> Date: Sat, 30 Jan 2021 21:21:58 +0500 Subject: [PATCH 03/18] Update mods/other/disallowed_names/init.lua Co-authored-by: Apelta <54854228+TSafa-23@users.noreply.github.com> --- mods/other/disallowed_names/init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mods/other/disallowed_names/init.lua b/mods/other/disallowed_names/init.lua index 993ee01..c951db7 100644 --- a/mods/other/disallowed_names/init.lua +++ b/mods/other/disallowed_names/init.lua @@ -49,7 +49,7 @@ minetest.register_chatcommand("bdname_list", { description = "lists all the disallowed", privs = {ban= true}, func= function(name) - for k,v in pairs(disallowed_names) do + for k in pairs(disallowed_names) do minetest.chat_send_player(name, disallowed_names[k]) end end From c35bd98e34a9751d38ddf2e59c47940ceff38252 Mon Sep 17 00:00:00 2001 From: olliy <55839810+olliy1or@users.noreply.github.com> Date: Sun, 31 Jan 2021 13:18:14 +0500 Subject: [PATCH 04/18] Update mods/other/disallowed_names/init.lua Co-authored-by: Avyukt More <65779812+moreavy@users.noreply.github.com> --- mods/other/disallowed_names/init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mods/other/disallowed_names/init.lua b/mods/other/disallowed_names/init.lua index c951db7..28db9c2 100644 --- a/mods/other/disallowed_names/init.lua +++ b/mods/other/disallowed_names/init.lua @@ -5,7 +5,7 @@ disallowed_names=minetest.deserialize(storage:get_string("disallowed_names")) or minetest.register_on_prejoinplayer(function(name) for k,v in pairs(disallowed_names) do if string.find(string.lower(name),string.lower(v)) then - return "Your cannot use that username in this server, please change it and come back." + return "Your cannot use that username in this server. Please login with another username." end end end) From 8a65f94b819b947a55904c6f6785dc3433ad0232 Mon Sep 17 00:00:00 2001 From: olliy <55839810+olliy1or@users.noreply.github.com> Date: Sun, 31 Jan 2021 13:19:54 +0500 Subject: [PATCH 05/18] Update mods/other/disallowed_names/init.lua Co-authored-by: David Leal --- mods/other/disallowed_names/init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mods/other/disallowed_names/init.lua b/mods/other/disallowed_names/init.lua index 28db9c2..2f80f15 100644 --- a/mods/other/disallowed_names/init.lua +++ b/mods/other/disallowed_names/init.lua @@ -13,7 +13,7 @@ end) --adds a name to disallowed names minetest.register_chatcommand("bdname_add", { params = "", - privs = {ban= true}, + privs = {ban = true}, description = "adds a name to disallowed names", func = function(name,param) if param ~= "" then From 932b471f361b8f1b592851ab130c2b02522a8511 Mon Sep 17 00:00:00 2001 From: olliy <55839810+olliy1or@users.noreply.github.com> Date: Sun, 31 Jan 2021 13:20:50 +0500 Subject: [PATCH 06/18] Update mods/other/disallowed_names/init.lua Co-authored-by: David Leal --- mods/other/disallowed_names/init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mods/other/disallowed_names/init.lua b/mods/other/disallowed_names/init.lua index 2f80f15..208a9af 100644 --- a/mods/other/disallowed_names/init.lua +++ b/mods/other/disallowed_names/init.lua @@ -18,7 +18,7 @@ minetest.register_chatcommand("bdname_add", { func = function(name,param) if param ~= "" then table.insert(disallowed_names,tostring(param)) - minetest.chat_send_player(name, "added "..param.." to the list of banned words") + minetest.chat_send_player(name, "Added " .. param .. " to the list of banned words") local serial_table = minetest.serialize(disallowed_names) storage:set_string("disallowed_names", serial_table) else From 03d05ea77f4e004650814b3065f673d0f0613e81 Mon Sep 17 00:00:00 2001 From: olliy <55839810+olliy1or@users.noreply.github.com> Date: Sun, 31 Jan 2021 13:22:15 +0500 Subject: [PATCH 07/18] Update mods/other/disallowed_names/init.lua Co-authored-by: David Leal --- mods/other/disallowed_names/init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mods/other/disallowed_names/init.lua b/mods/other/disallowed_names/init.lua index 208a9af..3b28ebf 100644 --- a/mods/other/disallowed_names/init.lua +++ b/mods/other/disallowed_names/init.lua @@ -14,7 +14,7 @@ end) minetest.register_chatcommand("bdname_add", { params = "", privs = {ban = true}, - description = "adds a name to disallowed names", + description = "Adds a name to the disallowed names list.", func = function(name,param) if param ~= "" then table.insert(disallowed_names,tostring(param)) From 7b4a9ee14678ce29738197feb730376d371490e1 Mon Sep 17 00:00:00 2001 From: olliy <55839810+olliy1or@users.noreply.github.com> Date: Sun, 31 Jan 2021 13:22:51 +0500 Subject: [PATCH 08/18] Update mods/other/disallowed_names/init.lua Co-authored-by: David Leal --- mods/other/disallowed_names/init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mods/other/disallowed_names/init.lua b/mods/other/disallowed_names/init.lua index 3b28ebf..83e3070 100644 --- a/mods/other/disallowed_names/init.lua +++ b/mods/other/disallowed_names/init.lua @@ -44,7 +44,7 @@ minetest.register_chatcommand("bdname_remove",{ end }) ---list disallowed names +-- List of disallowed names minetest.register_chatcommand("bdname_list", { description = "lists all the disallowed", privs = {ban= true}, From c076f5fb4ce2dc3fbdb1e912ad4942337561d699 Mon Sep 17 00:00:00 2001 From: olliy <55839810+olliy1or@users.noreply.github.com> Date: Sun, 31 Jan 2021 13:23:16 +0500 Subject: [PATCH 09/18] Update mods/other/disallowed_names/init.lua Co-authored-by: David Leal --- mods/other/disallowed_names/init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mods/other/disallowed_names/init.lua b/mods/other/disallowed_names/init.lua index 83e3070..f7b4563 100644 --- a/mods/other/disallowed_names/init.lua +++ b/mods/other/disallowed_names/init.lua @@ -46,7 +46,7 @@ minetest.register_chatcommand("bdname_remove",{ -- List of disallowed names minetest.register_chatcommand("bdname_list", { - description = "lists all the disallowed", + description = "Lists all the disallowed names.", privs = {ban= true}, func= function(name) for k in pairs(disallowed_names) do From 5d82a2d81316cae78b48b7cf58f7707bc2cb71e0 Mon Sep 17 00:00:00 2001 From: olliy <55839810+olliy1or@users.noreply.github.com> Date: Sun, 31 Jan 2021 13:23:31 +0500 Subject: [PATCH 10/18] Update mods/other/disallowed_names/init.lua Co-authored-by: David Leal --- mods/other/disallowed_names/init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mods/other/disallowed_names/init.lua b/mods/other/disallowed_names/init.lua index f7b4563..20f7a63 100644 --- a/mods/other/disallowed_names/init.lua +++ b/mods/other/disallowed_names/init.lua @@ -48,7 +48,7 @@ minetest.register_chatcommand("bdname_remove",{ minetest.register_chatcommand("bdname_list", { description = "Lists all the disallowed names.", privs = {ban= true}, - func= function(name) + func = function(name) for k in pairs(disallowed_names) do minetest.chat_send_player(name, disallowed_names[k]) end From 9c8de618a2ea86351c079b2aad2797f0dd96b587 Mon Sep 17 00:00:00 2001 From: olliy <55839810+olliy1or@users.noreply.github.com> Date: Sun, 31 Jan 2021 13:23:55 +0500 Subject: [PATCH 11/18] Update mods/other/disallowed_names/init.lua Co-authored-by: David Leal --- mods/other/disallowed_names/init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mods/other/disallowed_names/init.lua b/mods/other/disallowed_names/init.lua index 20f7a63..8da939e 100644 --- a/mods/other/disallowed_names/init.lua +++ b/mods/other/disallowed_names/init.lua @@ -47,7 +47,7 @@ minetest.register_chatcommand("bdname_remove",{ -- List of disallowed names minetest.register_chatcommand("bdname_list", { description = "Lists all the disallowed names.", - privs = {ban= true}, + privs = {ban = true}, func = function(name) for k in pairs(disallowed_names) do minetest.chat_send_player(name, disallowed_names[k]) From 0f41ee3fa27426d97fb12c35f3f1b6f7a56d1ff2 Mon Sep 17 00:00:00 2001 From: olliy <55839810+olliy1or@users.noreply.github.com> Date: Sun, 31 Jan 2021 13:24:15 +0500 Subject: [PATCH 12/18] Update mods/other/disallowed_names/license.txt Co-authored-by: David Leal --- mods/other/disallowed_names/license.txt | 2 -- 1 file changed, 2 deletions(-) diff --git a/mods/other/disallowed_names/license.txt b/mods/other/disallowed_names/license.txt index 4668844..6b0a0fb 100644 --- a/mods/other/disallowed_names/license.txt +++ b/mods/other/disallowed_names/license.txt @@ -5,5 +5,3 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - - From d591aff7276a5f1141fe250994f97eb079c6e806 Mon Sep 17 00:00:00 2001 From: olliy <55839810+olliy1or@users.noreply.github.com> Date: Sun, 31 Jan 2021 13:26:24 +0500 Subject: [PATCH 13/18] Update mods/other/disallowed_names/init.lua Co-authored-by: David Leal --- mods/other/disallowed_names/init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mods/other/disallowed_names/init.lua b/mods/other/disallowed_names/init.lua index 8da939e..99af6a4 100644 --- a/mods/other/disallowed_names/init.lua +++ b/mods/other/disallowed_names/init.lua @@ -10,7 +10,7 @@ minetest.register_on_prejoinplayer(function(name) end end) ---adds a name to disallowed names +-- Command to add a name to disallowed names minetest.register_chatcommand("bdname_add", { params = "", privs = {ban = true}, From 741e7d2bdc6098e400fe94243a7b3ea2c7af9333 Mon Sep 17 00:00:00 2001 From: olliy <55839810+olliy1or@users.noreply.github.com> Date: Sun, 31 Jan 2021 13:26:40 +0500 Subject: [PATCH 14/18] Update mods/other/disallowed_names/init.lua Co-authored-by: David Leal --- mods/other/disallowed_names/init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mods/other/disallowed_names/init.lua b/mods/other/disallowed_names/init.lua index 99af6a4..f79d40a 100644 --- a/mods/other/disallowed_names/init.lua +++ b/mods/other/disallowed_names/init.lua @@ -12,7 +12,7 @@ end) -- Command to add a name to disallowed names minetest.register_chatcommand("bdname_add", { - params = "", + params = "", privs = {ban = true}, description = "Adds a name to the disallowed names list.", func = function(name,param) From bdfc9d5ecd6a6b5423837eceae5b35fbd8ec7059 Mon Sep 17 00:00:00 2001 From: olliy <55839810+olliy1or@users.noreply.github.com> Date: Fri, 30 Apr 2021 01:17:13 +0500 Subject: [PATCH 15/18] Update ranged.lua --- mods/ctf/ctf_classes/ranged.lua | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/mods/ctf/ctf_classes/ranged.lua b/mods/ctf/ctf_classes/ranged.lua index 81702d8..f83f1d6 100644 --- a/mods/ctf/ctf_classes/ranged.lua +++ b/mods/ctf/ctf_classes/ranged.lua @@ -66,10 +66,30 @@ local function check_grapple(itemname) }) end +local function check_rocket(itemname) + local def = minetest.registered_items[itemname] + local old_func = def.on_use + minetest.override_item(itemname, { + on_use = function(itemstack, user, ...) + if not ctf_classes.get(user).properties.allow_rockets then + minetest.chat_send_player(user:get_player_name(), + "You can't use that weapon! Change your class at base") + return itemstack + end + + return old_func(itemstack, user, ...) + end, + + }) +end + check_grapple("shooter_hook:grapple_gun_loaded") check_grapple("shooter_hook:grapple_gun") check_grapple("shooter_hook:grapple_hook") +check_rocket("shooter_rocket:rocket_gun_loaded") +check_rocket("shooter_rocket:rocket_gun") + -- Override grappling hook entity to check if player has flag before teleporting local old_grapple_step = minetest.registered_entities["shooter_hook:hook"].on_step minetest.registered_entities["shooter_hook:hook"].on_step = function(self, dtime, ...) From b2ea5c6c8ac371a27d276b538852dc891145eecf Mon Sep 17 00:00:00 2001 From: olliy <55839810+olliy1or@users.noreply.github.com> Date: Fri, 30 Apr 2021 01:20:51 +0500 Subject: [PATCH 16/18] Update classes.lua --- mods/ctf/ctf_classes/classes.lua | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/mods/ctf/ctf_classes/classes.lua b/mods/ctf/ctf_classes/classes.lua index 043db92..97580b4 100644 --- a/mods/ctf/ctf_classes/classes.lua +++ b/mods/ctf/ctf_classes/classes.lua @@ -153,13 +153,13 @@ ctf_classes.register("sniper", { } }) ]]-- - ---[[ctf_classes.register("rocketeer", { +ctf_classes.register("rocketeer", { description = "Rocketeer", pros = { "Can craft rockets" }, cons = {}, color = "#fa0", properties = { + allow_rockets = true, initial_stuff = { "shooter_rocket:rocket_gun_loaded", "shooter_rocket:rocket 4", @@ -167,6 +167,7 @@ ctf_classes.register("sniper", { additional_item_blacklist = { "shooter_rocket:rocket_gun", + "shooter_rocket:rocket" }, allowed_guns = { @@ -179,4 +180,4 @@ ctf_classes.register("sniper", { "shooter_rocket:rocket" }, }, -})]] +}) From d778b3a622fb86062e77a93e627b84272d2e2277 Mon Sep 17 00:00:00 2001 From: olliy <55839810+olliy1or@users.noreply.github.com> Date: Fri, 30 Apr 2021 01:23:37 +0500 Subject: [PATCH 17/18] Delete mods/other/disallowed_names directory --- mods/other/disallowed_names/init.lua | 56 ------------------------- mods/other/disallowed_names/license.txt | 7 ---- 2 files changed, 63 deletions(-) delete mode 100644 mods/other/disallowed_names/init.lua delete mode 100644 mods/other/disallowed_names/license.txt diff --git a/mods/other/disallowed_names/init.lua b/mods/other/disallowed_names/init.lua deleted file mode 100644 index f79d40a..0000000 --- a/mods/other/disallowed_names/init.lua +++ /dev/null @@ -1,56 +0,0 @@ -local storage = minetest.get_mod_storage() -minetest.deserialize(storage:get_string("disallowed_names")) -disallowed_names=minetest.deserialize(storage:get_string("disallowed_names")) or {"sex","fuck","damn","drug","suicid"} - -minetest.register_on_prejoinplayer(function(name) - for k,v in pairs(disallowed_names) do - if string.find(string.lower(name),string.lower(v)) then - return "Your cannot use that username in this server. Please login with another username." - end - end -end) - --- Command to add a name to disallowed names -minetest.register_chatcommand("bdname_add", { - params = "", - privs = {ban = true}, - description = "Adds a name to the disallowed names list.", - func = function(name,param) - if param ~= "" then - table.insert(disallowed_names,tostring(param)) - minetest.chat_send_player(name, "Added " .. param .. " to the list of banned words") - local serial_table = minetest.serialize(disallowed_names) - storage:set_string("disallowed_names", serial_table) - else - minetest.chat_send_player(name, "You need to add a name\n/bdname_add ") - end - end -}) - ---removes a name from disallowed names -minetest.register_chatcommand("bdname_remove",{ - description = "removes a name from disallowed names", - params = "", - privs = {ban=true}, - func = function(name, param) - if param ~="" then - for k in pairs(disallowed_names) do - if param == disallowed_names[k] then - table.remove(disallowed_names,k) - end - end - storage:set_string("disallowed_names", minetest.serialize(disallowed_names)) - end - end -}) - --- List of disallowed names -minetest.register_chatcommand("bdname_list", { - description = "Lists all the disallowed names.", - privs = {ban = true}, - func = function(name) - for k in pairs(disallowed_names) do - minetest.chat_send_player(name, disallowed_names[k]) - end - end -}) diff --git a/mods/other/disallowed_names/license.txt b/mods/other/disallowed_names/license.txt deleted file mode 100644 index 6b0a0fb..0000000 --- a/mods/other/disallowed_names/license.txt +++ /dev/null @@ -1,7 +0,0 @@ -Copyright 2021 olliy - -Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. From 3279f45c6ca19d01e23c896d71d2c024310bc188 Mon Sep 17 00:00:00 2001 From: olliy <55839810+olliy1or@users.noreply.github.com> Date: Fri, 30 Apr 2021 22:08:03 +0500 Subject: [PATCH 18/18] Update mods/ctf/ctf_classes/ranged.lua Co-authored-by: David Leal --- mods/ctf/ctf_classes/ranged.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mods/ctf/ctf_classes/ranged.lua b/mods/ctf/ctf_classes/ranged.lua index f83f1d6..5b9f2d1 100644 --- a/mods/ctf/ctf_classes/ranged.lua +++ b/mods/ctf/ctf_classes/ranged.lua @@ -73,7 +73,7 @@ local function check_rocket(itemname) on_use = function(itemstack, user, ...) if not ctf_classes.get(user).properties.allow_rockets then minetest.chat_send_player(user:get_player_name(), - "You can't use that weapon! Change your class at base") + "You can't use that weapon! Change your class at base.") return itemstack end