From 53a31fbdadbeafed17a8e775cb83a139312e6bd5 Mon Sep 17 00:00:00 2001 From: LoneWolfHT Date: Tue, 22 Dec 2020 08:21:22 -0800 Subject: [PATCH] Improve/fix a few things --- mods/ctf/ctf_reports/init.lua | 2 +- mods/other/random_messages/init.lua | 4 ++-- mods/other/vote/vote_kick.lua | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/mods/ctf/ctf_reports/init.lua b/mods/ctf/ctf_reports/init.lua index 6676e97..300b94f 100644 --- a/mods/ctf/ctf_reports/init.lua +++ b/mods/ctf/ctf_reports/init.lua @@ -68,7 +68,7 @@ function ctf_reports.send_report(report) for _, player in pairs(minetest.get_connected_players()) do local toname = player:get_player_name() - if minetest.check_player_privs(toname, { kick = true, ban = true }) then + if minetest.check_player_privs(toname, { kick = true}) then table.insert(mods, toname) minetest.chat_send_player(toname, ingame_report) end diff --git a/mods/other/random_messages/init.lua b/mods/other/random_messages/init.lua index ccb43fb..2ff7864 100644 --- a/mods/other/random_messages/init.lua +++ b/mods/other/random_messages/init.lua @@ -60,10 +60,10 @@ function random_messages.read_messages() "Use team doors (steel) to stop the enemy walking into your base.", "Craft 4 cobbles and 1 steel ingot together to make reinforced cobble.", "Sprint by pressing the fast key (E) when you have stamina.", - "Like CTF? Give feedback using /report or @report, and consider donating at rubenwardy.com/donate", + "Like CTF? Give feedback using /report, and consider donating at rubenwardy.com/donate", "Want to submit your own map? Visit ctf.rubenwardy.com to get involved.", "Using limited resources for building structures that don't strengthen your base's defences is discouraged.", - "To report misbehaving players to moderators, please use /report or @report ", + "To report misbehaving players to moderators, please use /report ", "Swearing, trolling and being rude will not be tolerated and strict action will be taken.", "Trapping team mates on purpose is strictly against the rules and you will be kicked immediately.", "Help your team claim victory by storing extra weapons in the team chest, and never taking more than you need.", diff --git a/mods/other/vote/vote_kick.lua b/mods/other/vote/vote_kick.lua index 1a6ed51..d02c137 100644 --- a/mods/other/vote/vote_kick.lua +++ b/mods/other/vote/vote_kick.lua @@ -36,7 +36,7 @@ minetest.register_chatcommand("vote_kick", { return false, "There is no player called '" .. param .. "'" end - if minetest.check_player_privs(param, {kick = true, ban = true}) then + if minetest.check_player_privs(param, {kick = true}) then return false, param .. " is a moderator, and can't be kicked!" end @@ -93,7 +93,7 @@ minetest.register_chatcommand("vote_kick", { minetest.register_chatcommand("unblock", { params = "", description = "Unblock a vote-kicked player before the cooldown expires", - privs = {kick = true, ban = true}, + privs = {kick = true}, func = function(name, param) param = param:trim() if param == "" then