mirror of
https://github.com/minetest-mods/filter.git
synced 2025-04-30 05:41:45 -04:00
Highlighted mute and un-mute messages
This commit is contained in:
parent
34f0be2f9f
commit
e9df5c87c1
1 changed files with 2 additions and 2 deletions
4
init.lua
4
init.lua
|
@ -79,7 +79,7 @@ function filter.mute(name, duration)
|
|||
minetest.set_player_privs(name, privs)
|
||||
end
|
||||
|
||||
minetest.chat_send_player(name, "Watch your language! You have been temporarily muted")
|
||||
minetest.chat_send_player(name, minetest.colorize("#FF8C00","Watch your language! You have been temporarily muted"))
|
||||
|
||||
muted[name] = true
|
||||
|
||||
|
@ -87,7 +87,7 @@ function filter.mute(name, duration)
|
|||
muted[name] = nil
|
||||
local privs = minetest.get_player_privs(name)
|
||||
if privs.shout == false then
|
||||
minetest.chat_send_player(name, "Chat privilege reinstated. Please do not abuse chat.")
|
||||
minetest.chat_send_player(name, minetest.colorize("#FF8C00","Chat privilege reinstated. Please do not abuse chat."))
|
||||
privs.shout = true
|
||||
minetest.set_player_privs(name, privs)
|
||||
end
|
||||
|
|
Loading…
Add table
Reference in a new issue