Player message is logged
Message is logged, so admin can decide if player need to be banned.
This commit is contained in:
parent
d84538601d
commit
fe32a28fe4
12
init.lua
12
init.lua
@ -70,14 +70,14 @@ minetest.register_on_chat_message(function(name, message)
|
|||||||
|
|
||||||
if uncensored == 1 then
|
if uncensored == 1 then
|
||||||
minetest.kick_player(name, "Hey! Was there a bad word?")
|
minetest.kick_player(name, "Hey! Was there a bad word?")
|
||||||
minetest.log("action", "Player "..name.." warned for cursing")
|
minetest.log("action", "Player "..name.." warned for cursing. Chat:"..message)
|
||||||
return true
|
return true
|
||||||
end
|
end
|
||||||
|
|
||||||
if uncensored == 2 then
|
if uncensored == 2 then
|
||||||
minetest.kick_player(name, "Cursing or words, inappropriate to game server. Kids may be playing here!")
|
minetest.kick_player(name, "Cursing or words, inappropriate to game server. Kids may be playing here!")
|
||||||
minetest.chat_send_all("Player <"..name.."> warned for cursing" )
|
minetest.chat_send_all("Player <"..name.."> warned for cursing" )
|
||||||
minetest.log("action", "Player "..name.." warned for cursing")
|
minetest.log("action", "Player "..name.." warned for cursing. Chat:"..message)
|
||||||
return true
|
return true
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -90,14 +90,14 @@ if minetest.chatcommands["me"] then
|
|||||||
|
|
||||||
if uncensored == 1 then
|
if uncensored == 1 then
|
||||||
minetest.kick_player(name, "Hey! Was there a bad word?")
|
minetest.kick_player(name, "Hey! Was there a bad word?")
|
||||||
minetest.log("action", "Player "..name.." warned for cursing")
|
minetest.log("action", "Player "..name.." warned for cursing. Msg:"..param)
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
if uncensored == 2 then
|
if uncensored == 2 then
|
||||||
minetest.kick_player(name, "Cursing or words, inappropriate to game server. Kids may be playing here!")
|
minetest.kick_player(name, "Cursing or words, inappropriate to game server. Kids may be playing here!")
|
||||||
minetest.chat_send_all("Player <"..name.."> warned for cursing" )
|
minetest.chat_send_all("Player <"..name.."> warned for cursing" )
|
||||||
minetest.log("action", "Player "..name.." warned for cursing")
|
minetest.log("action", "Player "..name.." warned for cursing. Me:"..param)
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -112,14 +112,14 @@ if minetest.chatcommands["msg"] then
|
|||||||
|
|
||||||
if uncensored == 1 then
|
if uncensored == 1 then
|
||||||
minetest.kick_player(name, "Hey! Was there a bad word?")
|
minetest.kick_player(name, "Hey! Was there a bad word?")
|
||||||
minetest.log("action", "Player "..name.." warned for cursing")
|
minetest.log("action", "Player "..name.." warned for cursing. Msg:"..param)
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
if uncensored == 2 then
|
if uncensored == 2 then
|
||||||
minetest.kick_player(name, "Cursing or words, inappropriate to game server. Kids may be playing here!")
|
minetest.kick_player(name, "Cursing or words, inappropriate to game server. Kids may be playing here!")
|
||||||
minetest.chat_send_all("Player <"..name.."> warned for cursing" )
|
minetest.chat_send_all("Player <"..name.."> warned for cursing" )
|
||||||
minetest.log("action", "Player "..name.." warned for cursing")
|
minetest.log("action", "Player "..name.." warned for cursing. Msg:"..param)
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user