You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
612 B

affects = {}
affects.affectTime = 30 -- how often, in seconds, should runAffects be called
affectsPath = minetest.get_modpath("affects")
affectsFile = minetest.get_worldpath().."/affects.txt"
affects._affects = {}
affects._affectedPlayers = {}
dofile(affectsPath.."/functions.lua")
dofile(affectsPath.."/api.lua")
dofile(affectsPath.."/loops.lua")
dofile(affectsPath.."/chatcommands.lua")
dofile(affectsPath.."/persistance.lua")
affects.loadAffects()
minetest.register_privilege("affects", "Player can use the affects chat commands.")
minetest.register_on_shutdown(function()
affects.saveAffects()
end
)