From 6456aba73f0ef3f2fa7fd2b2a69cfdf8624afe23 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Sun, 24 May 2020 15:46:26 +0200 Subject: Replacement for Minimal Development Test (PR) (#9450) --- games/minimal/mods/initial_message/init.lua | 9 +++++++++ games/minimal/mods/initial_message/mod.conf | 2 ++ 2 files changed, 11 insertions(+) create mode 100644 games/minimal/mods/initial_message/init.lua create mode 100644 games/minimal/mods/initial_message/mod.conf (limited to 'games/minimal/mods/initial_message') diff --git a/games/minimal/mods/initial_message/init.lua b/games/minimal/mods/initial_message/init.lua new file mode 100644 index 000000000..f92f4d3cf --- /dev/null +++ b/games/minimal/mods/initial_message/init.lua @@ -0,0 +1,9 @@ +minetest.register_on_joinplayer(function(player) + local cb = function(player) + if not player or not player:is_player() then + return + end + minetest.chat_send_player(player:get_player_name(), "This is the \"Minimal development Test\" [minimal], meant only for testing and development. Use Minetest Game for the real thing.") + end + minetest.after(2.0, cb, player) +end) diff --git a/games/minimal/mods/initial_message/mod.conf b/games/minimal/mods/initial_message/mod.conf new file mode 100644 index 000000000..32aa2ac4e --- /dev/null +++ b/games/minimal/mods/initial_message/mod.conf @@ -0,0 +1,2 @@ +name = initial_message +description = Show message to joining players explaining what this testing game is about -- cgit v1.2.3