Override the on-join status

Overrides the status message on join and adds a . to the end of the fake join/part messages.
This commit is contained in:
luk3yx 2018-04-02 14:32:32 +12:00
parent 514fcdcfaa
commit 8adde253fa
2 changed files with 10 additions and 2 deletions

View File

@ -57,6 +57,13 @@ minetest.get_server_status = function()
return status return status
end end
-- Change the on-join status
minetest.settings:set_bool('show_statusline_on_connect', false)
minetest.register_on_joinplayer(function(player)
local name = player:get_player_name()
minetest.chat_send_player(name, minetest.get_server_status())
end)
-- Don't allow chat or chatcommands in all commands that don't have the -- Don't allow chat or chatcommands in all commands that don't have the
-- allow_while_cloaked parameter set. -- allow_while_cloaked parameter set.
local override_chatcommands = function() local override_chatcommands = function()
@ -106,7 +113,7 @@ cloaking.cloak = function(player)
cloaked_players[victim] = true cloaked_players[victim] = true
minetest.chat_send_all("*** " .. victim .. " left the game") minetest.chat_send_all("*** " .. victim .. " left the game.")
if irc then if irc then
irc.say("*** " .. victim .. " left the game") irc.say("*** " .. victim .. " left the game")
end end
@ -128,7 +135,7 @@ cloaking.uncloak = function(player)
cloaked_players[victim] = false cloaked_players[victim] = false
minetest.chat_send_all("*** " .. victim .. " joined the game") minetest.chat_send_all("*** " .. victim .. " joined the game.")
if irc then if irc then
irc.say("*** " .. victim .. " joined the game") irc.say("*** " .. victim .. " joined the game")
end end

View File

@ -2,3 +2,4 @@ chat3?
irc? irc?
xban? xban?
xban2? xban2?
formspeclib?