Improve/fix a few things
This commit is contained in:
parent
a37be6ba54
commit
53a31fbdad
3 changed files with 5 additions and 5 deletions
|
@ -68,7 +68,7 @@ function ctf_reports.send_report(report)
|
||||||
|
|
||||||
for _, player in pairs(minetest.get_connected_players()) do
|
for _, player in pairs(minetest.get_connected_players()) do
|
||||||
local toname = player:get_player_name()
|
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)
|
table.insert(mods, toname)
|
||||||
minetest.chat_send_player(toname, ingame_report)
|
minetest.chat_send_player(toname, ingame_report)
|
||||||
end
|
end
|
||||||
|
|
|
@ -60,10 +60,10 @@ function random_messages.read_messages()
|
||||||
"Use team doors (steel) to stop the enemy walking into your base.",
|
"Use team doors (steel) to stop the enemy walking into your base.",
|
||||||
"Craft 4 cobbles and 1 steel ingot together to make reinforced cobble.",
|
"Craft 4 cobbles and 1 steel ingot together to make reinforced cobble.",
|
||||||
"Sprint by pressing the fast key (E) when you have stamina.",
|
"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.",
|
"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.",
|
"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 <name> <action> or @report <name> <action>",
|
"To report misbehaving players to moderators, please use /report <name> <action>",
|
||||||
"Swearing, trolling and being rude will not be tolerated and strict action will be taken.",
|
"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.",
|
"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.",
|
"Help your team claim victory by storing extra weapons in the team chest, and never taking more than you need.",
|
||||||
|
|
|
@ -36,7 +36,7 @@ minetest.register_chatcommand("vote_kick", {
|
||||||
return false, "There is no player called '" .. param .. "'"
|
return false, "There is no player called '" .. param .. "'"
|
||||||
end
|
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!"
|
return false, param .. " is a moderator, and can't be kicked!"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -93,7 +93,7 @@ minetest.register_chatcommand("vote_kick", {
|
||||||
minetest.register_chatcommand("unblock", {
|
minetest.register_chatcommand("unblock", {
|
||||||
params = "<name>",
|
params = "<name>",
|
||||||
description = "Unblock a vote-kicked player before the cooldown expires",
|
description = "Unblock a vote-kicked player before the cooldown expires",
|
||||||
privs = {kick = true, ban = true},
|
privs = {kick = true},
|
||||||
func = function(name, param)
|
func = function(name, param)
|
||||||
param = param:trim()
|
param = param:trim()
|
||||||
if param == "" then
|
if param == "" then
|
||||||
|
|
Loading…
Reference in a new issue