add mod hellochat
This commit is contained in:
parent
d25a700fe2
commit
6a70c71c1d
2 changed files with 14 additions and 0 deletions
0
mods/hellochat/depends.txt
Normal file
0
mods/hellochat/depends.txt
Normal file
14
mods/hellochat/init.lua
Normal file
14
mods/hellochat/init.lua
Normal file
|
@ -0,0 +1,14 @@
|
|||
minetest.register_on_joinplayer(function(player)
|
||||
if not minetest.check_player_privs(player:get_player_name(), {interact=true}) then
|
||||
local player = player:get_player_name()
|
||||
local color = "#52DF55"
|
||||
-- How ugly, multible sending instead multiline.
|
||||
-- https://github.com/minetest/minetest/pull/4546
|
||||
minetest.chat_send_player(player, core.colorize(color, "# Illuna: Hey friend, it looks like you're new here, awesome to meet ya!"))
|
||||
minetest.chat_send_player(player, core.colorize(color, "# Illuna: You just joined our VIP world, so you need to do a few steps in order to play here. :-)"))
|
||||
minetest.chat_send_player(player, core.colorize(color, "# Illuna: 1. Read our rules (how boring) at https://illuna.rocks/rules"))
|
||||
minetest.chat_send_player(player, core.colorize(color, "# Illuna: 2. Join our community at https://meet.illuna.rocks and introduce yourself."))
|
||||
minetest.chat_send_player(player, core.colorize(color, "# Illuna: This is our way to protect the players, you'll love how secure this world is. ;-)"))
|
||||
minetest.chat_send_player(player, core.colorize("#C3E9FF", "# Illuna: Our you just try our public servers at port 30001 and 30002... ."))
|
||||
end
|
||||
end)
|
Loading…
Add table
Add a link
Reference in a new issue