2021-07-22 22:33:41 +02:00
|
|
|
|
|
|
|
|
2021-10-20 17:43:13 +02:00
|
|
|
-- Copyright (C) 2021 Free Software Foundation
|
2021-07-22 22:33:41 +02:00
|
|
|
|
|
|
|
-- This file is part of Emeraldbank Minetest Mod.
|
|
|
|
|
|
|
|
-- Emeraldbank is free software: you can redistribute it and/or modify
|
|
|
|
-- it under the terms of the GNU General Public License as published by
|
|
|
|
-- the Free Software Foundation, either version 3 of the License, or
|
2021-10-13 14:23:24 +02:00
|
|
|
-- (at your option) any later version.
|
2021-07-22 22:33:41 +02:00
|
|
|
|
|
|
|
-- Emeraldbank is distributed in the hope that it will be useful,
|
|
|
|
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
-- GNU General Public License for more details.
|
|
|
|
|
|
|
|
-- You should have received a copy of the GNU General Public License
|
|
|
|
-- along with Emeraldbank. If not, see <https://www.gnu.org/licenses/>.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-10-13 14:23:24 +02:00
|
|
|
local modpath = core.get_modpath(core.get_current_modname())
|
2021-07-22 22:33:41 +02:00
|
|
|
|
2021-08-07 22:39:41 +02:00
|
|
|
emeraldbank = {}
|
2021-07-22 22:33:41 +02:00
|
|
|
|
2021-10-13 14:23:24 +02:00
|
|
|
local income_enabled = core.settings:get_bool("emeraldbank.income_enabled", true)
|
2021-07-22 22:33:41 +02:00
|
|
|
|
2021-08-06 16:43:05 +02:00
|
|
|
if income_enabled then
|
2021-10-13 14:23:24 +02:00
|
|
|
dofile(modpath .. "/income.lua")
|
2021-08-06 16:43:05 +02:00
|
|
|
end
|
2021-10-13 14:23:24 +02:00
|
|
|
|
|
|
|
dofile(modpath .. "/bank.lua")
|
2021-10-16 13:45:08 +02:00
|
|
|
-- dofile(modpath .. "/shop.lua")
|
2021-10-13 14:23:24 +02:00
|
|
|
dofile(modpath .. "/commands.lua")
|