diff options
author | Perttu Ahola <celeron55@gmail.com> | 2012-07-25 17:10:31 +0300 |
---|---|---|
committer | Perttu Ahola <celeron55@gmail.com> | 2012-07-25 17:10:31 +0300 |
commit | 4535166a3bdcb498e6891d67b3f9a01145c263a8 (patch) | |
tree | 21d0d3fc6a6369ee1f742d04a2a8ece38cea92c0 /games | |
parent | 0346e68debc73c20be1220177bab4da8716ae402 (diff) | |
download | minetest-4535166a3bdcb498e6891d67b3f9a01145c263a8.tar.gz minetest-4535166a3bdcb498e6891d67b3f9a01145c263a8.tar.bz2 minetest-4535166a3bdcb498e6891d67b3f9a01145c263a8.zip |
Add notice in the minimal game
Diffstat (limited to 'games')
-rw-r--r-- | games/minimal/mods/default/init.lua | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/games/minimal/mods/default/init.lua b/games/minimal/mods/default/init.lua index 133b9ed22..ce7f01def 100644 --- a/games/minimal/mods/default/init.lua +++ b/games/minimal/mods/default/init.lua @@ -14,6 +14,14 @@ default = {} -- Load other files dofile(minetest.get_modpath("default").."/mapgen.lua") +-- Set a noticeable inventory formspec for players +minetest.register_on_joinplayer(function(player) + local cb = function(player) + minetest.chat_send_player(player:get_player_name(), "This is the [minimal] \"Minimal Development Test\" game. Use [minetest_game] for the real thing.") + end + minetest.after(2.0, cb, player) +end) + -- -- Tool definition -- |