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
14
init.lua
14
init.lua
@ -70,14 +70,14 @@ minetest.register_on_chat_message(function(name, message)
|
||||
|
||||
if uncensored == 1 then
|
||||
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
|
||||
end
|
||||
|
||||
if uncensored == 2 then
|
||||
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.log("action", "Player "..name.." warned for cursing")
|
||||
minetest.log("action", "Player "..name.." warned for cursing. Chat:"..message)
|
||||
return true
|
||||
end
|
||||
|
||||
@ -90,14 +90,14 @@ if minetest.chatcommands["me"] then
|
||||
|
||||
if uncensored == 1 then
|
||||
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
|
||||
end
|
||||
|
||||
if uncensored == 2 then
|
||||
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.log("action", "Player "..name.." warned for cursing")
|
||||
minetest.log("action", "Player "..name.." warned for cursing. Me:"..param)
|
||||
return
|
||||
end
|
||||
|
||||
@ -112,17 +112,17 @@ if minetest.chatcommands["msg"] then
|
||||
|
||||
if uncensored == 1 then
|
||||
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
|
||||
end
|
||||
|
||||
if uncensored == 2 then
|
||||
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.log("action", "Player "..name.." warned for cursing")
|
||||
minetest.log("action", "Player "..name.." warned for cursing. Msg:"..param)
|
||||
return
|
||||
end
|
||||
|
||||
return old_command(name, param)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user