diff --git a/mods/hellochat/depends.txt b/mods/hellochat/depends.txt new file mode 100644 index 00000000..e69de29b diff --git a/mods/hellochat/init.lua b/mods/hellochat/init.lua new file mode 100644 index 00000000..3fd54f53 --- /dev/null +++ b/mods/hellochat/init.lua @@ -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)