Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if param == "checke" and minetest.get_player_privs(name).server then
- minetest.log("action","Checking for existing players now...")
- for id = 1, 8000 do
- if areas.areas[id] then
- local checkn = areas.areas[id].owner
- if checkn and not areas:player_exists(checkn) then
- areas:remove(id)
- minetest.log("action","Removed area "..id)
- end
- end
- end
- areas:save()
- return true,"Checked areas for player existence and removed areas that were protected by deleted accounts."
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement