Move give initial stuff to _misc

master
CraigyDavi 2014-08-17 12:14:05 +01:00
parent f1556c0107
commit f6e255dc00
3 changed files with 5 additions and 4 deletions

View File

@ -1,7 +1,7 @@
minetest.register_on_newplayer(function(player)
print("on_newplayer")
print("New player just joined!")
if minetest.setting_getbool("give_initial_stuff") then
print("giving give_initial_stuff to player")
print("Giving initial stuff to the player.")
player:get_inventory():add_item('main', 'default:pick_stone')
player:get_inventory():add_item('main', 'default:torch 20')
player:get_inventory():add_item('main', 'default:axe_stone')

View File

@ -2,6 +2,9 @@
-- Server Misc Mod --
---------------------
-- Give initial stuff
dofile(minetest.get_modpath("_misc").."/give_intial_stuff.lua")
-- Chat Commands
dofile(minetest.get_modpath("_misc").."/chatcommands.lua")

View File

@ -1,2 +0,0 @@
default