bind faction.flags to Lua