core is brand new, crashes in versions older than 2014/05/08, so I modified the call to core.get_privs to use if core then core.get_privs else minetest.get_privs