1
0
mirror of https://github.com/SmallJoker/bitchange.git synced 2025-07-17 15:50:19 +02:00

Cleanups, new node

Added tool repair node to .. repair tools with money
This commit is contained in:
SmallJoker
2014-01-18 11:40:06 +01:00
parent 73161dbd9f
commit 1a68fcbdc8
13 changed files with 183 additions and 55 deletions

View File

@ -15,6 +15,9 @@ end
if(bitchange_enable_warehouse) then
dofile(mod_path.."/warehouse.lua")
end
if(bitchange_enable_toolrepair) then
dofile(mod_path.."/toolrepair.lua")
end
if(bitchange_enable_bank) then
local loaded_bank = ""
if(minetest.get_modpath("money") ~= nil) then
@ -38,4 +41,11 @@ if(not minetest.setting_getbool("creative_mode") and bitchange_initial_give > 0)
player:get_inventory():add_item("main", "bitchange:mineninth "..bitchange_initial_give)
end)
end
-- Privs
minetest.register_privilege("bitchange", "Can access to owned nodes of the bitchange mod")
function bitchange_has_access(owner, player_name)
return (player_name == owner or minetest.get_player_privs(player_name).server or minetest.get_player_privs(player_name).bitchange)
end
print("[BitChange] Loaded.")