factions/databases.lua

14 lines
449 B
Lua
Raw Normal View History

--! @class factions
--! @brief main class for factions
factions = {}
-- Create cold databases.
2019-05-20 07:03:36 +02:00
factions.root = colddb.Colddb(minetest.get_worldpath() .. "/factions")
factions.factions = factions.root.sub_database("factions")
factions.parcels = factions.root.sub_database("parcels")
factions.players = factions.root.sub_database("players")
factions.player_ips = factions.root.sub_database("ips")
-- Memory only storage.
factions.onlineplayers = {}