2019-05-03 06:05:52 +02:00
|
|
|
--! @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")
|
2019-05-03 06:05:52 +02:00
|
|
|
|
|
|
|
-- Memory only storage.
|
|
|
|
factions.onlineplayers = {}
|